Files
infra-postgres/docker-compose.yml
tristan 9c74eb9114 feat : initial PostgreSQL infrastructure setup
- docker-compose with postgres:16-alpine
- Init script to create databases (SIRH + Ferme, prod + recette)
- Deploy script with readiness check
- Backup script with rotation (keeps last 7)
- Auto-tag CI workflow
- Full deployment documentation
2026-03-31 10:51:33 +02:00

12 lines
258 B
YAML

services:
postgres:
image: postgres:16-alpine
container_name: postgres
env_file: .env
ports:
- "5432:5432"
volumes:
- ./data:/var/lib/postgresql/data
- ./init:/docker-entrypoint-initdb.d:ro
restart: unless-stopped