Dispatcharr/docker
None 52ed0fc15a fix: run PostgreSQL as PUID/PGID user to resolve ownership conflicts (#1078)
PostgreSQL now runs as the PUID/PGID user ($POSTGRES_USER) instead of the internal postgres system user (UID 102). This fixes container startup failures when PUID/PGID is set, caused by chown permission errors on restricted filesystems (NFS root_squash, CIFS) and UID collisions with the postgres system user.

Changes:
- Run all PostgreSQL operations (initdb, pg_ctl, psql) as $POSTGRES_USER
- Auto-detect PUID/PGID from existing data owner when not explicitly set
- Validate PUID/PGID (reject zero, non-numeric values) before startup
- Migrate existing data ownership with sentinel-based skip optimization
- Use trust auth for local Unix sockets, md5 for network connections
- Add promote_app_role() and ensure_app_database() as idempotent startup guarantees that handle fresh installs, upgrades, and PUID changes
- Preserve postgres role as superuser for rollback compatibility
- Centralize /data/db ownership in 02-postgres.sh (sentinel-aware)
- Add integration test suite (20 scenarios) covering fresh installs, upgrades, restarts, PUID changes, UID collisions, bind mounts, modular mode, PG major upgrades, and end-to-end web UI verification
2026-03-11 23:36:32 -05:00
..
init fix: run PostgreSQL as PUID/PGID user to resolve ownership conflicts (#1078) 2026-03-11 23:36:32 -05:00
tests fix: run PostgreSQL as PUID/PGID user to resolve ownership conflicts (#1078) 2026-03-11 23:36:32 -05:00
build-dev.sh fix: stabilize build-dev paths and push behavior 2026-01-17 15:00:09 -06:00
comskip.ini Comskip Update 2025-09-04 13:45:25 -05:00
DispatcharrBase Refactor for uv transition. 2026-01-30 12:12:42 -06:00
docker-compose.aio.yml Add restart policy to dispatcharr container 2026-02-19 12:41: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 restart policy to Docker services 2026-02-19 12:44:07 -06:00
docker-compose.yml Fix modular mode deployment issues (#1045) 2026-03-03 17:18:16 -06:00
Dockerfile Add health check and fix dangerous checks 2026-01-21 17:40:36 -06:00
entrypoint.aio.sh Revert "Merge branch 'main' of https://github.com/Dispatcharr/Dispatcharr" 2025-03-03 15:18:11 -06:00
entrypoint.celery.sh Fix modular mode deployment issues (#1045) 2026-03-03 17:18:16 -06:00
entrypoint.sh fix: run PostgreSQL as PUID/PGID user to resolve ownership conflicts (#1078) 2026-03-11 23:36:32 -05:00
nginx.conf Bug fix: Admin URL Conflict with XC Streams: Updated nginx configuration to only redirect exact /admin and /admin/ paths to login in production, preventing interference with stream URLs that use "admin" as a username (e.g., /admin/password/stream_id now properly routes to stream handling instead of being redirected). 2026-01-27 14:36:57 -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
uwsgi.modular.ini Fix Redis flush and wait_for_redis in modular mode 2026-03-06 15:17:32 -06:00