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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue