From 9ec72f4622bf946ee824aaa67735f2b516d0da16 Mon Sep 17 00:00:00 2001 From: cangui Date: Sat, 5 Oct 2024 18:38:12 +0200 Subject: [PATCH] update db --- docker-compose.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4908840..ea8c4f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,9 +12,9 @@ services: depends_on: - db volumes: - - .:/app # Monte le répertoire de l'hôte dans le conteneur - working_dir: /app # Définit le répertoire de travail dans le conteneur - command: sh -c "chmod -R 777 /app && npm install && node app.js" + - backend_server_app:/app # Use the backend_server_app volume + working_dir: /app # Sets the working directory in the container + command: sh -c "npm install && node app.js" # Command to start the application db: image: mysql:8.0 @@ -39,4 +39,5 @@ services: - db volumes: + backend_server_app: # Declare the backend_server_app volume db_data_new: