From e749b14c8f6f4c57da82f1b10f29b9a3f81d16e6 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Fri, 6 Feb 2026 21:34:53 +0100 Subject: [PATCH] revert to simple version --- docker-compose.yml | 73 ++++++++++++++++++++++++++-------------------- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index aa9a5c3..5618635 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,36 +1,45 @@ services: - db: - image: postgres:14 - container_name: dispatcharr_db - ports: - - "5436:5432" - environment: - - POSTGRES_DB=dispatcharr - - POSTGRES_USER=dispatch - - POSTGRES_PASSWORD=secret - volumes: - - /var/lib/docker/volumes/dispatcharr/postgre/:/var/lib/postgresql/data - - redis: - image: redis:latest - container_name: dispatcharr_redis - - celery: + dispatcharr: + # build: + # context: . + # dockerfile: Dockerfile image: ghcr.io/dispatcharr/dispatcharr:latest - container_name: dispatcharr_celery - depends_on: - - db - - redis + container_name: dispatcharr + ports: + - 9191:9191 volumes: - - /var/lib/docker/volumes/dispatcharr/celery/:/app - #extra_hosts: - # - "host.docker.internal:host-gateway" + - dispatcharr_data:/data environment: - - POSTGRES_HOST=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 && nice -n 5 celery -A dispatcharr worker -l info" \ No newline at end of file + - DISPATCHARR_ENV=aio + - REDIS_HOST=localhost + - CELERY_BROKER_URL=redis://localhost:6379/0 + - DISPATCHARR_LOG_LEVEL=info + # Legacy CPU Support (Optional) + # Uncomment to enable legacy NumPy build for older CPUs (circa 2009) + # that lack support for newer baseline CPU features + #- USE_LEGACY_NUMPY=true + # Process Priority Configuration (Optional) + # Lower values = higher priority. Range: -20 (highest) to 19 (lowest) + # Negative values require cap_add: SYS_NICE (uncomment below) + #- UWSGI_NICE_LEVEL=-5 # uWSGI/FFmpeg/Streaming (default: 0, recommended: -5 for high priority) + #- CELERY_NICE_LEVEL=5 # Celery/EPG/Background tasks (default: 5, low priority) + # + # Uncomment to enable high priority for streaming (required if UWSGI_NICE_LEVEL < 0) + #cap_add: + # - SYS_NICE + # Optional for hardware acceleration + #devices: + # - /dev/dri:/dev/dri # For Intel/AMD GPU acceleration (VA-API) + # Uncomment the following lines for NVIDIA GPU support + # NVidia GPU support (requires NVIDIA Container Toolkit) + #deploy: + # resources: + # reservations: + # devices: + # - driver: nvidia + # count: all + # capabilities: [gpu] + + +volumes: + dispatcharr_data: \ No newline at end of file