2024-07-19 13:16:10 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
casdoor:
|
2024-11-30 23:23:39 +08:00
|
|
|
image: casbin/casdoor:v1.762.0
|
2024-07-19 13:16:10 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8000
|
2024-07-19 18:35:36 +08:00
|
|
|
env_file:
|
2024-11-27 17:54:18 +08:00
|
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
|
|
- ${APP_ENV_FILE:-/etc/1panel/envs/casdoor/casdoor.env}
|
2024-07-19 18:35:36 +08:00
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
2024-07-19 13:16:10 +08:00
|
|
|
volumes:
|
2024-07-20 16:09:09 +08:00
|
|
|
- ${CASDOOR_ROOT_PATH}/files:/files
|
2024-07-19 13:16:10 +08:00
|
|
|
environment:
|
|
|
|
- driverName=${DB_TYPE}
|
|
|
|
- dbName=${DB_NAME}
|
|
|
|
- verificationCodeTimeout=10
|
2024-07-20 10:45:05 +08:00
|
|
|
- appname=casdoor
|
|
|
|
- authState=casdoor
|