networks: 1panel-network: external: true services: lucky: image: gdy666/lucky:2.25.2 container_name: ${CONTAINER_NAME} labels: createdBy: "Apps" restart: always network_mode: ${NETWORK_MODE:-host} ports: - ${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP} env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: - ./run/start.sh:/app/conf/start.sh:ro - /var/run/docker.sock:/var/run/docker.sock - ${LUCKY_ROOT_PATH}/data:/app/conf environment: - TZ=Asia/Shanghai entrypoint: [ "/app/conf/start.sh" ]