2024-07-19 13:16:10 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
casdoor:
|
2024-09-06 11:29:02 +08:00
|
|
|
image: casbin/casdoor:v1.692.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:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- /etc/1panel/envs/casdoor/casdoor.env
|
|
|
|
- ${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
|