UE2.24 - TP3 Fini, TP4 Fini, TP5 en cours

This commit is contained in:
Guillaume-Sanchez
2026-06-29 15:22:32 +02:00
parent 6e5f833d57
commit 5d81b0dbb0
12 changed files with 58 additions and 0 deletions
@@ -0,0 +1,58 @@
services:
db:
image: mariadb:latest
container_name: db_container
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=mydb
- MYSQL_USER=user
- MYSQL_PASSWORD=userpassword
volumes:
- db_data:/var/lib/mysql
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "mariadb -uroot -prootpassword -e 'SELECT 1' || exit 1"]
interval: 5s
timeout: 5s
retries: 3
web:
image: nginx:alpine
container_name: web_container
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./html:/usr/share/nginx/html:ro
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
interval: 10s
timeout: 5s
retries: 3
phpmyadmin:
image: phpmyadmin:latest
container_name: phpmyadmin_container
restart: unless-stopped
environment:
- PMA_HOST=db
ports:
- "8081:80"
networks:
- app-network
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost || exit 1"]
interval: 10s
timeout: 5s
retries: 3
volumes:
db_data:
networks:
app-network:
driver: bridge