mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-23 08:01:00 +00:00
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.
20 lines
506 B
YAML
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
|