dockefile back

This commit is contained in:
Alexandre Chevalier
2026-02-11 12:43:57 +01:00
parent 844faf7486
commit fd260c4066
5 changed files with 89 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ services:
front:
build:
context: ..
dockerfile: dockerfiles/front/DockerFile
dockerfile: dockerfiles/front/Dockerfile
ports:
- "5000:5000"
@@ -28,15 +28,16 @@ services:
back:
build:
context: ..
dockerfile: dockerfiles/back/DockerFile
dockerfile: dockerfiles/back/DockerfileUsingApiNative
ports:
- "8000:8000"
- "8080:8080"
volumes:
- ../doodlestudent/api:/app
environment:
- FLASK_ENV=development
depends_on:
- db
db:
condition: service_healthy
networks:
- app-network
@@ -49,6 +50,11 @@ services:
- MYSQL_DATABASE=tlc
- MYSQL_USER=tlc
- MYSQL_PASSWORD=tlc
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-proot"]
interval: 5s
timeout: 5s
retries: 10
networks:
- app-network