Dispatcharr/docker
Mattias Svensson b9e4a1d8d4 Feature: Support for external PostgreSQL and Redis services
Add ability to use external PostgreSQL and Redis instead of internal services.

**New Environment Variables:**
- `EXTERNAL_POSTGRES` - Set to "true" to skip internal PostgreSQL startup
- `EXTERNAL_REDIS` - Set to "true" to skip internal Redis startup

**Auto-detection:**
- If `POSTGRES_HOST` is not localhost/127.0.0.1, automatically uses external PostgreSQL
- If `REDIS_HOST` is not localhost/127.0.0.1, automatically uses external Redis
- Explicit `EXTERNAL_POSTGRES`/`EXTERNAL_REDIS` variables override auto-detection

**Changes:**
- Skip internal PostgreSQL initialization and startup when using external
- Wait for external PostgreSQL to be ready before proceeding
- Remove redis-server daemon from uwsgi config when using external Redis
- Add service configuration logging at startup
- Export REDIS_PORT variable (default: 6379)

This enables proper Kubernetes deployments with separate PostgreSQL/Redis services.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 08:17:11 +01:00
..
init Fix root-owned __pycache__ by running Django commands as non-root user 2025-12-31 12:16:19 -05:00
build-dev.sh Give arguments to docker/build-dev.sh 2025-12-12 12:59:03 +07:00
comskip.ini Comskip Update 2025-09-04 13:45:25 -05:00
DispatcharrBase More cleanup of base image. 2026-01-08 14:52:58 -06:00
docker-compose.aio.yml Add optional legacy NumPy support for older CPUs in Docker configurations 2026-01-08 10:27:58 -06:00
docker-compose.debug.yml Add optional legacy NumPy support for older CPUs in Docker configurations 2026-01-08 10:27:58 -06:00
docker-compose.dev.yml Add optional legacy NumPy support for older CPUs in Docker configurations 2026-01-08 10:27:58 -06:00
docker-compose.yml Add optional legacy NumPy support for older CPUs in Docker configurations 2026-01-08 10:27:58 -06:00
Dockerfile Fix root-owned __pycache__ by running Django commands as non-root user 2025-12-31 12:16:19 -05:00
entrypoint.aio.sh Revert "Merge branch 'main' of https://github.com/Dispatcharr/Dispatcharr" 2025-03-03 15:18:11 -06:00
entrypoint.sh Feature: Support for external PostgreSQL and Redis services 2026-01-21 08:17:11 +01:00
nginx.conf Merge pull request #488 from stlalpha/feature/automated-backups 2025-12-15 16:17:33 -06:00
uwsgi.debug.ini Remove DJANGO_SECRET_KEY environment variable from uwsgi configuration files 2025-12-08 17:27:07 -06:00
uwsgi.dev.ini Remove DJANGO_SECRET_KEY environment variable from uwsgi configuration files 2025-12-08 17:27:07 -06:00
uwsgi.ini Bug Fix: Add socket-timeout to uWSGI production config to prevent VOD stream timeouts during client buffering 2026-01-07 14:10:17 +01:00