mirror of https://github.com/casbin/casnode.git
Improve docker-compose.yml
This commit is contained in:
parent
b315f58566
commit
345e794a9e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue