update db

This commit is contained in:
cangui 2024-10-05 18:38:12 +02:00
parent bc94ac0b54
commit 9ec72f4622

View File

@ -12,9 +12,9 @@ services:
depends_on: depends_on:
- db - db
volumes: volumes:
- .:/app # Monte le répertoire de l'hôte dans le conteneur - backend_server_app:/app # Use the backend_server_app volume
working_dir: /app # Définit le répertoire de travail dans le conteneur working_dir: /app # Sets the working directory in the container
command: sh -c "chmod -R 777 /app && npm install && node app.js" command: sh -c "npm install && node app.js" # Command to start the application
db: db:
image: mysql:8.0 image: mysql:8.0
@ -39,4 +39,5 @@ services:
- db - db
volumes: volumes:
backend_server_app: # Declare the backend_server_app volume
db_data_new: db_data_new: