Update docker-compose.yml

This commit is contained in:
Tobias Mattsson 2023-03-10 12:24:28 +01:00 committed by GitHub
parent 990ca25567
commit eff81d4976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -3,12 +3,12 @@ services:
image: node:18-alpine
command: sh -c "yarn install && yarn run dev"
ports:
- 192.168.0.12:3000:3000
- 3000:3000
working_dir: /app
volumes:
- ./:/app
environment:
MYSQL_HOST: 192.168.0.13
MYSQL_HOST: backend
MYSQL_USER: root
MYSQL_PASSWORD: secret
MYSQL_DB: todos
@ -20,8 +20,6 @@ services:
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: todos
ports:
- 192.168.0.13:3306:3306
volumes:
todo-mysql-data: