update pour test
This commit is contained in:
parent
9ef5b80392
commit
05cf885238
@ -14,18 +14,20 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- backend_server_app:/app # Use the backend_server_app volume
|
- backend_server_app:/app # Utiliser un volume nommé explicitement
|
||||||
working_dir: /app # Sets the working directory in the container
|
working_dir: /app
|
||||||
command: sh -c "npm install && node app.js"
|
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_new:/var/lib/mysql
|
- db_data_new:/var/lib/mysql # Utiliser un volume nommé explicitement
|
||||||
ports:
|
ports:
|
||||||
- '3306:3306'
|
- '3306:3306'
|
||||||
|
|
||||||
phpmyadmin:
|
phpmyadmin:
|
||||||
image: phpmyadmin/phpmyadmin
|
image: phpmyadmin/phpmyadmin
|
||||||
restart: always
|
restart: always
|
||||||
@ -39,5 +41,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
backend_server_app: # Declare the backend_server_app volume
|
backend_server_app:
|
||||||
|
name: backend_server_app # Nommer explicitement le volume
|
||||||
db_data_new:
|
db_data_new:
|
||||||
|
name: db_data_new # Nommer explicitement le volume
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user