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: casnode:
build: build:
context: ./ context: ./
dockerfile: go-dockerfile dockerfile: Dockerfile
ports: ports:
- 7000:7000 - "7000:7000"
depends_on: depends_on:
- db - db
volumes:
- ./conf:/conf/
db: db:
restart: always restart: always
image: mysql:8.0.25 image: mysql:8.0.25
ports: ports:
- 3308:3306 - "3306:3306"
environment: environment:
MYSQL_ROOT_PASSWORD: 123 MYSQL_ROOT_PASSWORD: 123
volumes: volumes: