services: woodpecker-server: image: woodpeckerci/woodpecker-server:latest container_name: woodpecker-server ports: - 8000:8000 restart: unless-stopped volumes: - ./server-data:/var/lib/woodpecker/ environment: - WOODPECKER_OPEN=false - WOODPECKER_HOST=${WOODPECKER_HOST} - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} env_file: - .env networks: - nginx-reverse-proxy_proxy - woodpecker woodpecker-agent: image: woodpeckerci/woodpecker-agent:latest container_name: woodpecker-agent command: agent restart: unless-stopped depends_on: - woodpecker-server volumes: - ./agent-config:/etc/woodpecker - /var/run/docker.sock:/var/run/docker.sock env_file: - .env environment: - WOODPECKER_SERVER=woodpecker-server:9000 - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET} networks: - woodpecker networks: nginx-reverse-proxy_proxy: external: true woodpecker: