Actualiser docker-compose.prod.yml
Some checks failed
Deploy / deploy (push) Failing after 12s

This commit is contained in:
2026-03-10 12:40:36 +00:00
parent 61818df8c0
commit 8debdd49b5

View File

@@ -13,6 +13,9 @@ services:
- "${PROD_PORT}:8080"
networks:
- web
depends_on:
mysql:
condition: service_healthy
labels:
- homepage.group=${HOMEPAGE_GROUP}
- homepage.name=${HOMEPAGE_NAME}
@@ -20,7 +23,7 @@ services:
- homepage.description=${HOMEPAGE_DESC}
- homepage.href=${HOMEPAGE_HREF}
db:
mysql:
image: mysql:8.0
container_name: ${APP_NAME}-db
restart: unless-stopped
@@ -35,6 +38,10 @@ services:
- db-data:/var/lib/mysql
networks:
- web
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u${DB_USERNAME}", "-p${DB_PASSWORD}"]
timeout: 20s
retries: 10
networks:
web: