mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
76 lines
1.6 KiB
YAML
76 lines
1.6 KiB
YAML
services:
|
|
web:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
container_name: dispatcharr_web
|
|
ports:
|
|
- "9191:9191"
|
|
- "5656:5656"
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ../:/app
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
- POSTGRES_HOST=db
|
|
- POSTGRES_DB=dispatcharr
|
|
- POSTGRES_USER=dispatch
|
|
- POSTGRES_PASSWORD=secret
|
|
- REDIS_HOST=redis
|
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
|
- REACT_UI=true
|
|
|
|
ui:
|
|
image: alpine
|
|
container_name: dispatcharr_ui
|
|
network_mode: service:web
|
|
volumes:
|
|
- ../frontend:/app
|
|
entrypoint: ["/bin/sh", "/app/entrypoint.sh"]
|
|
|
|
celery:
|
|
build:
|
|
context: ..
|
|
dockerfile: docker/Dockerfile
|
|
container_name: dispatcharr_celery
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ../:/app
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
environment:
|
|
- POSTGRES_HOST=dispatcharr_db
|
|
- POSTGRES_DB=dispatcharr
|
|
- POSTGRES_USER=dispatch
|
|
- POSTGRES_PASSWORD=secret
|
|
- REDIS_HOST=redis
|
|
- CELERY_BROKER_URL=redis://redis:6379/0
|
|
command: >
|
|
bash -c "
|
|
cd /app &&
|
|
celery -A dispatcharr worker -l info
|
|
"
|
|
|
|
db:
|
|
image: postgres:14
|
|
container_name: dispatcharr_db
|
|
ports:
|
|
- "5436:5432"
|
|
environment:
|
|
- POSTGRES_DB=dispatcharr
|
|
- POSTGRES_USER=dispatch
|
|
- POSTGRES_PASSWORD=secret
|
|
# volumes:
|
|
# - postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:latest
|
|
container_name: dispatcharr_redis
|
|
|
|
volumes:
|
|
postgres_data:
|