This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
drone/compose.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2020-06-18 14:13:29 +00:00
---
version: "3.8"
services:
drone:
image: "drone/drone:1.9.1"
2020-06-23 08:58:53 +00:00
command:
- "--env-file /data/drone.conf"
2020-06-18 14:13:29 +00:00
volumes:
- "data:/data"
2020-06-23 08:58:53 +00:00
configs:
- source: drone_conf
target: /data/drone.conf
2020-06-18 14:13:29 +00:00
environment:
- DRONE_GITEA_CLIENT_ID: "${GITEA_CLIENT_ID}"
- DRONE_GITEA_SERVER: "https://${GITEA_DOMAIN}"
- DRONE_GIT_ALWAYS_AUTH: "true"
- DRONE_JSONNET_ENABLED: "true"
- DRONE_SERVER_HOST: "${DOMAIN}"
2020-06-23 08:58:53 +00:00
- DRONE_SERVER_PORT: ":${PORT:8042}"
2020-06-18 14:13:29 +00:00
- DRONE_SERVER_PROTO: "https"
2020-06-18 14:17:37 +00:00
networks:
- proxy
deploy:
update_config:
failure_action: rollback
labels:
- "traefik.enable=true"
- "traefik.http.routers.drone.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.drone.entrypoints=web-secure"
2020-06-23 08:58:53 +00:00
- "traefik.http.services.drone.loadbalancer.server.port=${PORT:8042}"
2020-06-18 14:17:37 +00:00
- "traefik.http.routers.drone.tls.certresolver=${LETS_ENCRYPT_ENV}"
2020-06-18 14:13:29 +00:00
2020-06-23 08:58:53 +00:00
configs:
drone_conf:
name: ${STACK_NAME}_drone_conf_${DRONE_CONF_VERSION}
file: drone.conf.tmpl
template_driver: golang
2020-06-18 14:13:29 +00:00
volumes:
data: