update pour test

This commit is contained in:
cangui 2024-10-10 12:04:17 +02:00
parent 9ef5b80392
commit 05cf885238

View File

@ -14,18 +14,20 @@ services:
depends_on:
- db
volumes:
- backend_server_app:/app # Use the backend_server_app volume
working_dir: /app # Sets the working directory in the container
- backend_server_app:/app # Utiliser un volume nommé explicitement
working_dir: /app
command: sh -c "npm install && node app.js"
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=manga_database
volumes:
- db_data_new:/var/lib/mysql
- db_data_new:/var/lib/mysql # Utiliser un volume nommé explicitement
ports:
- '3306:3306'
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
@ -39,5 +41,7 @@ services:
- db
volumes:
backend_server_app: # Declare the backend_server_app volume
backend_server_app:
name: backend_server_app # Nommer explicitement le volume
db_data_new:
name: db_data_new # Nommer explicitement le volume