update db
This commit is contained in:
parent
8f7c07b162
commit
6d45b5e28a
@ -14,15 +14,16 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- backend_server_app:/app # Use the backend_server_app volume
|
||||||
- /app/node_modules
|
working_dir: /app # Sets the working directory in the container
|
||||||
|
command: sh -c "npm install && node app.js"
|
||||||
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
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data_new:/var/lib/mysql
|
||||||
ports:
|
ports:
|
||||||
- '3306:3306'
|
- '3306:3306'
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
@ -38,4 +39,5 @@ services:
|
|||||||
- db
|
- db
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db_data:
|
backend_server_app: # Declare the backend_server_app volume
|
||||||
|
db_data_new:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user