update db

This commit is contained in:
cangui 2024-10-05 18:57:53 +02:00
parent 8f7c07b162
commit 6d45b5e28a

View File

@ -14,15 +14,16 @@ services:
depends_on:
- db
volumes:
- .:/app
- /app/node_modules
- 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"
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=manga_database
volumes:
- db_data:/var/lib/mysql
- db_data_new:/var/lib/mysql
ports:
- '3306:3306'
phpmyadmin:
@ -38,4 +39,5 @@ services:
- db
volumes:
db_data:
backend_server_app: # Declare the backend_server_app volume
db_data_new: