update db
This commit is contained in:
parent
a05127f155
commit
b0fdfc21b6
@ -12,19 +12,22 @@ 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
|
||||
command: sh -c "npm install && node app.js" # Command to start the application
|
||||
- backend_server_app:/app # Utilise le volume backend_server_app
|
||||
working_dir: /app # Définit le répertoire de travail dans le conteneur
|
||||
command: sh -c "npm install && node app.js" # Commande pour démarrer l'application
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=secret
|
||||
- MYSQL_DATABASE=manga_database
|
||||
- MYSQL_USER=root
|
||||
- MYSQL_PASSWORD=secret
|
||||
volumes:
|
||||
- db_data_new:/var/lib/mysql
|
||||
ports:
|
||||
- '3306:3306'
|
||||
command: --default-authentication-plugin=mysql_native_password # Force l'utilisation du plugin d'authentification natif MySQL pour éviter les problèmes de connexion
|
||||
|
||||
phpmyadmin:
|
||||
image: phpmyadmin/phpmyadmin
|
||||
@ -39,5 +42,5 @@ services:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
backend_server_app: # Declare the backend_server_app volume
|
||||
db_data_new:
|
||||
backend_server_app: # Déclare le volume backend_server_app
|
||||
db_data_new: # Déclare le volume db_data_new
|
||||
|
||||
Loading…
Reference in New Issue
Block a user