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
|
image: registry.gitlab.com/treasure-hunt4/treasure-api:latest
|
||||||
restart: "no"
|
restart: "no"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql
|
mysql:
|
||||||
|
condition: service_healthy
|
||||||
environment:
|
environment:
|
||||||
APP_ENV: "production"
|
APP_ENV: "production"
|
||||||
APP_KEY: "${APP_KEY}"
|
APP_KEY: "${APP_KEY}"
|
||||||
|
|
@ -50,6 +51,12 @@ services:
|
||||||
- mysql-data:/var/lib/mysql
|
- mysql-data:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- "3308:3306" # Optionnel, pour accès externe à MySQL
|
- "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:
|
volumes:
|
||||||
mysql-data:
|
mysql-data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue