Improve docker-compose.yml

This commit is contained in:
Yang Luo 2021-10-28 23:50:26 +08:00
parent b315f58566
commit 345e794a9e
2 changed files with 5 additions and 3 deletions

View File

@ -3,16 +3,18 @@ services:
casnode:
build:
context: ./
dockerfile: go-dockerfile
dockerfile: Dockerfile
ports:
- 7000:7000
- "7000:7000"
depends_on:
- db
volumes:
- ./conf:/conf/
db:
restart: always
image: mysql:8.0.25
ports:
- 3308:3306
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: 123
volumes: