feat: add run casdoor through docker

Signed-off-by: killer <1533063601@qq.com>
This commit is contained in:
killer
2021-07-12 18:58:46 +08:00
committed by Yang Luo
parent 896f8b808f
commit 0fc388d662
3 changed files with 56 additions and 0 deletions

19
docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: '3.1'
services:
casdoor:
build:
context: ./
dockerfile: go-dockerfile
ports:
- 8000:8000
depends_on:
- db
db:
restart: always
image: mysql:8.0.25
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: 123
volumes:
- /usr/local/docker/mysql:/var/lib/mysql