Add traefik and swarm deploy keys

This commit is contained in:
Luke Murphy 2020-06-18 16:17:37 +02:00
parent 5a01027749
commit d86d2da5dc
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 12 additions and 0 deletions

View File

@ -1,4 +1,5 @@
export DOMAIN=drone.autonomic.zone
export GITEA_CLIENT_ID=barfoo
export GITEA_CLIENT_SECRET=foobar
export LETS_ENCRYPT_ENV=production
export STACK_NAME=drone

View File

@ -20,6 +20,17 @@ services:
- DRONE_SERVER_HOST: "${DOMAIN}"
- DRONE_SERVER_PORT: ":8042"
- DRONE_SERVER_PROTO: "https"
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"
- "traefik.http.services.drone.loadbalancer.server.port=8042"
- "traefik.http.routers.drone.tls.certresolver=${LETS_ENCRYPT_ENV}"
volumes:
data: