Files
appstore/apps/1panel/v2/docker-compose.yml
T
okxlin 6377f8bd02 Fix 1Panel configurable base directory
Mount the selected host data directory at the same container path and pass it through BASE_DIR, matching the current moelin/1panel entrypoint contract. Normalize legacy relative DATA_PATH values before install or upgrade and preserve existing data locations.
2026-07-16 18:26:22 +08:00

20 lines
506 B
YAML

services:
1panel:
container_name: ${CONTAINER_NAME}
restart: always
network_mode: "host"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${DATA_PATH}:${DATA_PATH}
environment:
- TZ=${TIME_ZONE}
- PORT=${PANEL_APP_PORT_HTTP}
- USERNAME=${PANEL_ADMIN_USERNAME}
- PASSWORD=${PANEL_ADMIN_PASSWORD}
- ENTRANCE=${PANEL_ENTRANCE}
- BASE_DIR=${DATA_PATH}
- RESET=false
image: moelin/1panel:v2
labels:
createdBy: Apps