feat: try fix

This commit is contained in:
leon-morival 2025-11-30 19:44:12 +01:00
parent f93bfdc70b
commit 64a82d0e2c
1 changed files with 8 additions and 1 deletions

View File

@ -24,7 +24,8 @@ services:
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
restart: "no"
depends_on:
- mysql
mysql:
condition: service_healthy
environment:
APP_ENV: "production"
APP_KEY: "${APP_KEY}"
@ -50,6 +51,12 @@ services:
- mysql-data:/var/lib/mysql
ports:
- "3308:3306" # Optionnel, pour accès externe à MySQL
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p${MYSQL_ROOT_PASSWORD}"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
volumes:
mysql-data: