Files
HomeAudit/backups/stacks-pre-secrets-20250828-092958/postgresql-primary.yml
admin 9ea31368f5 Complete Traefik infrastructure deployment - 60% complete
Major accomplishments:
-  SELinux policy installed and working
-  Core Traefik v2.10 deployment running
-  Production configuration ready (v3.1)
-  Monitoring stack configured
-  Comprehensive documentation created
-  Security hardening implemented

Current status:
- 🟡 Partially deployed (60% complete)
- ⚠️ Docker socket access needs resolution
-  Monitoring stack not deployed yet
- ⚠️ Production migration pending

Next steps:
1. Fix Docker socket permissions
2. Deploy monitoring stack
3. Migrate to production config
4. Validate full functionality

Files added:
- Complete Traefik deployment documentation
- Production and test configurations
- Monitoring stack configurations
- SELinux policy module
- Security checklists and guides
- Current status documentation
2025-08-28 15:22:41 -04:00

44 lines
810 B
YAML

version: '3.9'
services:
postgresql_primary:
image: postgres:16
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/pg_root_password
secrets:
- pg_root_password
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- database-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
deploy:
resources:
limits:
memory: 4G
cpus: '2.0'
reservations:
memory: 2G
cpus: '1.0'
placement:
constraints:
- "node.labels.role==db"
replicas: 1
volumes:
pg_data:
driver: local
secrets:
pg_root_password:
external: true
networks:
database-network:
external: true