Files
infra-postgres/CLAUDE.md
tristan d3927b0cc4
All checks were successful
Auto Tag / tag (push) Successful in 5s
docs : add CLAUDE.md
2026-03-31 11:53:09 +02:00

27 lines
853 B
Markdown

# infra-postgres
## Stack
- PostgreSQL 16 Alpine (conteneur Docker)
- Docker Compose
## Structure
- `docker-compose.yml` — service PostgreSQL, port 5432, volume data/ en bind mount
- `deploy.sh` — pull + up + readiness check
- `backup.sh` — pg_dumpall + rotation (garde les 7 derniers)
- `doc/deployment.md` — guide complet de deploiement
## Conventions
- Un seul user `malio` pour toutes les bases de donnees
- Les applications se connectent via `host.docker.internal:5432`
- Les secrets (`.env`) ne sont jamais commites (`.gitignore`)
- Les backups sont dans `backups/` (non commites)
- Les donnees PostgreSQL sont dans `data/` (non commites)
## CI/CD
- Auto-tag sur push `main` (`.gitea/workflows/auto-tag.yml`)
- Token : `REGISTRY_TOKEN` (secret organisation MALIO-DEV)
## Language
- Documentation en francais
- Code/scripts en anglais