Files
appstore/apps/serverkit/1.11.4/docker-compose.yml
okxlin c69d1fee40 Use app-local bind mount for ServerKit data
Store the SQLite data directory under the 1Panel application install path so application backups include it. Initialize the bind directory with the image runtime UID/GID and keep both packaged versions upgrade-safe.
2026-09-17 19:40:46 +08:00

41 lines
1.1 KiB
YAML

services:
serverkit:
image: "jhd3197/serverkit:1.11.4"
container_name: ${CONTAINER_NAME}
ports:
- "${PANEL_APP_PORT_HTTP}:5000"
environment:
- "TZ=${TZ}"
- "DATABASE_URL=sqlite:////app/instance/serverkit.db"
- "FLASK_ENV=production"
- "SECRET_KEY=${SECRET_KEY}"
- "JWT_SECRET_KEY=${JWT_SECRET_KEY}"
- "SERVERKIT_ENCRYPTION_KEY=${SERVERKIT_ENCRYPTION_KEY}"
- "CORS_ORIGINS=${CORS_ORIGINS}"
- "SERVERKIT_PUBLIC_URL=${SERVERKIT_PUBLIC_URL:-}"
- "TRUST_PROXY_HEADERS=${TRUST_PROXY_HEADERS}"
- "TRUSTED_PROXY_HOPS=1"
- "SERVERKIT_GITHUB_REPO=jhd3197/ServerKit"
volumes:
- "./data:/app/instance"
networks:
- "1panel-network"
labels:
createdBy: "Apps"
restart: "unless-stopped"
healthcheck:
test: ["CMD-SHELL", "curl -f \"http://127.0.0.1:5000/api/v1/system/health\" || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
1panel-network:
external: true