mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00

* fix: some minor bugs and make Dockerfile more productive. * fix: make GitHub CI configuration support build image with STANDARD target. * fix: Naming the base stage in multi-stage builds with lowercase letters to support various operating systems. * fix: copy swagger to the image as well.
28 lines
557 B
YAML
28 lines
557 B
YAML
version: '3.1'
|
|
services:
|
|
casdoor:
|
|
restart: always
|
|
build:
|
|
context: ./
|
|
dockerfile: Dockerfile
|
|
target: STANDARD
|
|
entrypoint: /bin/sh -c './server --createDatabase=true'
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
RUNNING_IN_DOCKER: "true"
|
|
volumes:
|
|
- ./conf:/conf/
|
|
db:
|
|
restart: always
|
|
image: mysql:8.0.25
|
|
platform: linux/amd64
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: 123456
|
|
volumes:
|
|
- /usr/local/docker/mysql:/var/lib/mysql
|