feat: mount app.conf to container (#217)

Signed-off-by: sh1luo <690898835@qq.com>
This commit is contained in:
sh1luo
2021-08-03 10:22:55 +08:00
committed by GitHub
parent 4001e63f16
commit 9f5c6b1e05

View File

@ -5,14 +5,16 @@ services:
context: ./ context: ./
dockerfile: go-dockerfile dockerfile: go-dockerfile
ports: ports:
- 8000:8000 - "8000:8000"
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:
- 3306:3306 - "3306:3306"
environment: environment:
MYSQL_ROOT_PASSWORD: 123 MYSQL_ROOT_PASSWORD: 123
volumes: volumes: