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