-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Description
Contact Information
No response
1Panel Version
v1.10.34-lts
Problem Description
casdoor compose:
networks:
1panel-network:
external: true
services:
casdoor:
container_name: ${CONTAINER_NAME}
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
environment:
RUNNING_IN_DOCKER: "true"
dataSourceName: ${CASDOOR_DATASOURCE_NAME}
dbName: ${PANEL_DB_NAME}
driverName: ${CASDOOR_DRIVER_NAME}
image: casbin/casdoor:2.235.0
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:8000
restart: always
volumes:
- ./conf:/conf
.env file
CONTAINER_NAME="1Panel-casdoor-7Q3x"
CPUS=0
HOST_IP=""
MEMORY_LIMIT=0
PANEL_APP_PORT_HTTP=8000
PANEL_DB_HOST="mysql"
PANEL_DB_HOST_NAME="mysql"
PANEL_DB_NAME="xxx"
PANEL_DB_PORT=3306
PANEL_DB_TYPE="mysql"
PANEL_DB_USER="xxx"
PANEL_DB_USER_PASSWORD="xxx"
CASDOOR_DRIVER_NAME=mysql
CASDOOR_DATASOURCE_NAME="xxx:xxx@tcp(mysql:3306)/"
XXX="xxx"
backup and restore. CASDOOR_DRIVER_NAME, CASDOOR_DATASOURCE_NAME, XXX in .env file will disappear. And the app won't be started.
Steps to Reproduce
just backup and restore it. CASDOOR_DRIVER_NAME, CASDOOR_DATASOURCE_NAME, XXX in .env file will disappear. And the app won't be started.
The expected correct result
No response
Related log output
Additional Information
No response