2021-09-02 18:01:03 +02:00

39 lines
1.1 KiB
YAML

version: "3.8"
services:
drone:
image: drone/drone:2
container_name: drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${VOLUME_DRONE}:/data
restart: unless-stopped
environment:
- TZ=${TZ}
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_TLS_AUTOCERT=false
- DRONE_RUNNER_CAPACITY=2
- DRONE_USER_CREATE=username:${USERNAME},admin:true
- DRONE_LOGS_TRACE=true
ports:
- 80:80
- 443:443
drone_runner:
image: drone/drone-runner-docker:latest
container_name: drone_runner
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_HOST=${DRONE_SERVER_HOST}
- DRONE_RPC_PROTO=${DRONE_SERVER_PROTO}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=2
ports:
- 3000:3000