version: "2" networks: webproxy: external: true backend-gitea: external: true services: drone: container_name: drone image: drone/drone:1.10 restart: always environment: - DRONE_GITEA_SERVER=https://git.bmen.cc - DRONE_GIT_ALWAYS_AUTH=false - DRONE_RUNNER_CAPACITY=1 - DRONE_SERVER_HOST=drone.bmen.cc - DRONE_SERVER_PROTO=https - DRONE_RPC_SECRET=${DRONE_RPC_SECRET} - DRONE_AGENTS_ENABLED=true - DRONE_TLS_AUTOCERT=false - DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID} - DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET} - VIRTUAL_HOST=drone.bmen.cc - VIRTUAL_PORT=80 - DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true volumes: - /var/run/docker.sock:/var/run/docker.sock - /opt/appdata/drone:/data networks: - backend-gitea - webproxy drone-agent: container_name: drone-agent image: drone/drone-runner-docker:1 restart: always environment: - DRONE_RPC_PROTO=http - DRONE_RPC_HOST=drone - DRONE_RPC_SECRET=${DRONE_RPC_SECRET} - DRONE_RUNNER_CAPACITY=1 - DRONE_RUNNER_NAME=${HOSTNAME} volumes: - /var/run/docker.sock:/var/run/docker.sock networks: - backend-gitea