57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
drone:
|
|
image: "drone/drone:1.8.0"
|
|
volumes:
|
|
- "data:/data"
|
|
configs:
|
|
- source: drone_env
|
|
target: .env
|
|
secrets:
|
|
- client_secret
|
|
- rpc_secret
|
|
environment:
|
|
- DRONE_GITEA_CLIENT_ID=5c32ee8c-b4dc-4240-ae68-1ca0562a31fb
|
|
- DRONE_GITEA_SERVER=https://git.autonomic.zone
|
|
- DRONE_GIT_ALWAYS_AUTH=true
|
|
- DRONE_JSONNET_ENABLED=true
|
|
- DRONE_SERVER_HOST=drone.autonomic.zone
|
|
- DRONE_SERVER_PORT=:8042
|
|
- DRONE_SERVER_PROTO=https
|
|
- DRONE_USER_CREATE=username:autonomic,admin:true
|
|
networks:
|
|
- proxy
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.drone.rule=Host(`drone.autonomic.zone`)"
|
|
- "traefik.http.routers.drone.entrypoints=web-secure"
|
|
- "traefik.http.services.drone.loadbalancer.server.port=8042"
|
|
- "traefik.http.routers.drone.tls.certresolver=production"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
drone_env:
|
|
name: drone_env_v1
|
|
file: env.tmpl
|
|
template_driver: golang
|
|
|
|
secrets:
|
|
client_secret:
|
|
name: drone_client_secret_v1
|
|
external: true
|
|
rpc_secret:
|
|
name: drone_rpc_secret_v1
|
|
external: true
|
|
|
|
volumes:
|
|
data:
|