- Remove invalid PUID/PUIG environment variables (not supported by official Postgres image) - Fix service name from 'postgres' to 'postgresSQL' to match configuration references - Resolve permission errors on data directory mount 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
489 B
YAML
25 lines
489 B
YAML
services:
|
|
postgresSQL:
|
|
image: postgres:17-alpine
|
|
secrets:
|
|
- postgres-master
|
|
networks:
|
|
- homelab
|
|
environment:
|
|
- POSTGRES_USER=admin
|
|
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-master
|
|
- PGDATA=/var/lib/postgresql/data
|
|
volumes:
|
|
- /home/doc/projects/unraid-appdata/postgres:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
deploy:
|
|
replicas: 1
|
|
|
|
networks:
|
|
homelab:
|
|
external: true
|
|
secrets:
|
|
postgres-master:
|
|
external: true
|