@@ -51,59 +51,59 @@ docker-compose up -d
5151
5252### Architecture
5353
54- L' application peut être entièrement conteneurisée via un ** Dockerfile multi-stage** et ** Docker Compose** .
54+ The application can be fully containerized using a ** multi-stage Dockerfile ** and ** Docker Compose** .
5555
5656```
5757┌─────────────────── xpeho_network (bridge) ───────────────────┐
5858│ │
5959│ ┌──────────┐ jdbc:postgresql:// ┌──────────┐ │
6060│ │ app │ ──────── postgres:5432 ────────▶ │ postgres │ │
61- │ │ :8080 │ (nom du service) │ :5432 │ │
61+ │ │ :8080 │ (service name) │ :5432 │ │
6262│ └──────────┘ └──────────┘ │
6363│ │
6464└───────────────────────────────────────────────────────────────┘
6565```
6666
67- | Service | Image / Build | Rôle | Port exposé |
67+ | Service | Image / Build | Role | Exposed Port |
6868| ------------| ------------------------------| ----------------------------| ---------------------------|
69- | ` postgres ` | ` postgres:17-alpine ` | Base de données PostgreSQL | ` ${POSTGRES_PORT} ` → 5432 |
70- | ` app ` | Build depuis ` Dockerfile ` | Application Spring Boot | 8080 → 8080 |
69+ | ` postgres ` | ` postgres:17-alpine ` | PostgreSQL database | ` ${POSTGRES_PORT} ` → 5432 |
70+ | ` app ` | Built from ` Dockerfile ` | Spring Boot application | 8080 → 8080 |
7171
72- ### Dockerfile — Build multi -stage
72+ ### Dockerfile — Multi -stage Build
7373
74- Le Dockerfile utilise deux étapes pour produire une image finale légère et sécurisée :
74+ The Dockerfile uses two stages to produce a lightweight, secure final image :
7575
76- | Stage | Image | Rôle |
76+ | Stage | Image | Role |
7777| -------| -------| ------|
78- | ** Build** | ` eclipse-temurin:25-jdk ` | Compile le JAR avec Maven (JDK complet ) |
79- | ** Run** | ` eclipse-temurin:25-jre ` | Exécute l' application (JRE allégé, utilisateur non-root) |
78+ | ** Build** | ` eclipse-temurin:25-jdk ` | Compiles the JAR with Maven (full JDK ) |
79+ | ** Run** | ` eclipse-temurin:25-jre ` | Runs the application (lightweight JRE, non-root user ) |
8080
81- > ** Pourquoi Eclipse Temurin ?** Distribution OpenJDK de référence : gratuite , open-source, maintenue par la fondation Eclipse (Adoptium).
81+ > ** Why Eclipse Temurin?** Reference OpenJDK distribution: free , open-source, maintained by the Eclipse Foundation (Adoptium).
8282
83- > ** Sécurité :** L'image finale tourne avec un utilisateur non-root (` appuser ` ), sans code source ni outils de build.
83+ > ** Security :** The final image runs as a non-root user (` appuser ` ), without source code or build tools .
8484
8585### Compose Profiles
8686
87- Le service ` app ` est derrière un ** profil Compose** pour ne pas interférer avec le workflow dev/CI :
87+ The ` app ` service is behind a ** Compose profile ** to avoid interfering with the dev/CI workflow :
8888
8989``` bash
90- # Démarrer uniquement PostgreSQL (dev, tests, CI)
90+ # Start PostgreSQL only (dev, tests, CI)
9191docker compose up -d
9292
93- # Démarrer PostgreSQL + Application (déploiement complet )
93+ # Start PostgreSQL + Application (full deployment )
9494docker compose --profile app up -d --build
9595```
9696
97- ### Commandes utiles
97+ ### Useful Commands
9898
9999``` bash
100- # Voir les logs de l'application
100+ # View application logs
101101docker compose logs -f app
102102
103- # Arrêter et supprimer les conteneurs
103+ # Stop and remove containers
104104docker compose down
105105
106- # Arrêter et supprimer les conteneurs + volumes (reset DB)
106+ # Stop and remove containers + volumes (reset DB)
107107docker compose down -v
108108```
109109
@@ -119,7 +119,7 @@ POSTGRES_PASSWORD=your_password
119119POSTGRES_DB=your_database
120120POSTGRES_PORT=5432
121121
122- # Liquibase (optionnel, valeurs par défaut fournies )
122+ # Liquibase (optional, defaults provided )
123123LB_CHANGELOG=db/changelog/db.changelog-master.yaml
124124LB_SCHEMA=public
125125SPRING_LIQUIBASE_ENABLED=true
0 commit comments