This repository has been archived on 2025-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
swarm-production/stacks/core/postgres/stack.yml
John 0f75fbf226 Fix PostgreSQL stack configuration
- 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>
2025-11-11 01:44:46 +00:00

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