feat: try fix
This commit is contained in:
parent
f93bfdc70b
commit
64a82d0e2c
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue