docs : add CLAUDE.md
All checks were successful
Auto Tag / tag (push) Successful in 5s

This commit is contained in:
2026-03-31 11:53:09 +02:00
parent def82235ca
commit d3927b0cc4

26
CLAUDE.md Normal file
View File

@@ -0,0 +1,26 @@
# 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