networks: 1panel-network: external: true services: woodpecker-server: image: woodpeckerci/woodpecker-server:v3.15.0 container_name: ${CONTAINER_NAME} labels: createdBy: "Apps" restart: always networks: - 1panel-network ports: - ${PANEL_APP_PORT_HTTP}:8000 env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: - ${WOODPECKER_ROOT_PATH}/server:/var/lib/woodpecker/ environment: - TZ=Asia/Shanghai - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} - HTTPS_PROXY=${HTTP_PROXY} - NO_PROXY=127.0.0.1,localhost,.local,woodpecker-server,woodpecker-agent,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 woodpecker-agent: depends_on: - woodpecker-server image: woodpeckerci/woodpecker-agent:v3.15.0 container_name: agent-${CONTAINER_NAME} command: agent restart: always networks: - 1panel-network env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} volumes: - /var/run/docker.sock:/var/run/docker.sock - ${WOODPECKER_ROOT_PATH}/agent:/etc/woodpecker environment: - WOODPECKER_SERVER=woodpecker-server:9000 - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} - HTTPS_PROXY=${HTTP_PROXY} - NO_PROXY=127.0.0.1,localhost,.local,woodpecker-server,woodpecker-agent,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16