version: "3" networks: 1panel-network: external: true services: sun-panel-helper: image: madrays/sun-panel-helper:latest container_name: sun-panel-helper restart: always networks: - 1panel-network environment: - BACKEND_PORT=3001 ports: - "33002:80" # 可按需修改外部端口 volumes: # 🔑 挂载 Sun-Panel 的 custom 目录(关键!) - /opt/1panel/apps/local/sun-panel/localsun-panel/data/conf/custom:/app/backend/custom # 📁 持久化 helper 自身数据(建议放在同级目录下,便于管理) - /opt/1panel/apps/local/sun-panel/localsun-panel/helper/data:/app/backend/data - /opt/1panel/apps/local/sun-panel/localsun-panel/helper/backups:/app/backend/backups