Dispatcharr compose example.
Educational example only. Review every volume path, port, and credential before you run this. Do not copy production secrets into your wiki or git repo.
_shared/.env for non-secrets, _shared/.secret for credentialsmkdir -p /path/to/docker/stacks/dispatcharr
cd /path/to/docker/stacks/dispatcharr
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
---
services:
dispatcharr:
image: ghcr.io/dispatcharr/dispatcharr:latest
container_name: dispatcharr
hostname: dispatcharr
env_file:
- /path/to/docker/stacks/_shared/.env
- /path/to/docker/stacks/_shared/.secret
environment:
- DISPATCHARR_LOG_LEVEL=error
- DISPATCHARR_ENV=production
- DATABASE_URL=CHANGE_ME
# REDIS_URL comes from _shared/.env via env_file
# NVIDIA GPU Passthrough
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE:-10} # Max number of log files
max-size: ${DOCKERLOGGING_MAXSIZE:-200k} # Max file size
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1 # Use 'all' if you have multiple GPUs
capabilities: [gpu, video]
ports:
- 9191:9191
volumes:
- /path/to/docker/data/dispatcharr/data:/data
restart: unless-stopped
_shared/.secret.