update db
This commit is contained in:
parent
496118b515
commit
25cbfa2cf9
@ -2,7 +2,7 @@ services:
|
|||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- '8082:8080' # Change the host port from 8080 to 8082
|
- '8082:8080'
|
||||||
environment:
|
environment:
|
||||||
- DB_HOST=db
|
- DB_HOST=db
|
||||||
- DB_USER=admin
|
- DB_USER=admin
|
||||||
@ -12,8 +12,9 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app # Monte le répertoire courant dans le conteneur
|
||||||
- /app/node_modules
|
working_dir: /app # Définit le répertoire de travail dans le conteneur
|
||||||
|
command: ["node", "app.js"] # Commande pour démarrer l'application
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:8.0
|
image: mysql:8.0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user