soundwave/docker-compose.yml

63 lines
1.5 KiB
YAML
Raw Normal View History

#version: '3.8'
services:
soundwave:
container_name: soundwave
2025-12-23 23:46:11 +00:00
# Option 1: Pull from GitHub Container Registry (recommended for users)
# image: ghcr.io/aiulian25/soundwave:main
2025-12-23 23:46:11 +00:00
# Option 2: Build locally (uncomment if pulling fails or for development)
build:
context: .
dockerfile: Dockerfile
ports:
- "8889:8888"
volumes:
- ./audio:/app/audio
- ./cache:/app/cache
- ./data:/app/data
- ./backend/staticfiles:/app/backend/staticfiles
environment:
- SW_HOST=http://localhost:8889
- SW_USERNAME=admin
- SW_PASSWORD=soundwave
- ELASTIC_PASSWORD=soundwave
- REDIS_HOST=soundwave-redis
- TZ=UTC
- ES_URL=http://soundwave-es:9200
- CORS_ALLOWED_ORIGINS=${CORS_ALLOWED_ORIGINS:-http://localhost:8889,https://localhost:8889}
depends_on:
- soundwave-es
- soundwave-redis
restart: unless-stopped
soundwave-es:
image: bbilly1/tubearchivist-es
container_name: soundwave-es
restart: unless-stopped
environment:
- "ELASTIC_PASSWORD=soundwave"
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es_data:/usr/share/elasticsearch/data
expose:
- "9200"
soundwave-redis:
image: redis:alpine
container_name: soundwave-redis
restart: unless-stopped
expose:
- "6379"
volumes:
- redis_data:/data
volumes:
es_data:
redis_data: