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
45 lines
890 B
YAML
45 lines
890 B
YAML
version: '3.9'
|
|
services:
|
|
postgresql_primary:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_PASSWORD_FILE_FILE: /run/secrets/postgres_password_file
|
|
secrets:
|
|
- pg_root_password
|
|
- postgres_password_file
|
|
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
|
|
postgres_password_file:
|
|
external: true
|
|
networks:
|
|
database-network:
|
|
external: true
|