Migrating to swarm setup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy
2020-06-24 15:08:50 +02:00
parent 6c169e26d0
commit e9d0088195
5 changed files with 13 additions and 23 deletions

View File

@ -1,28 +1,30 @@
---
version: "3.7"
version: "3.8"
services:
jekyll:
image: decentral1se/autonomic.zone:v2.0.0
command: jekyll serve --host 0.0.0.0 --trace
command: bundle exec jekyll serve --host 0.0.0.0 --trace
environment:
JEKYLL_ENV: production
networks:
- proxy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000"]
interval: 15s
timeout: 10s
retries: 10
start_period: 20s
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
order: start-first
labels:
- "traefik.enable=true"
- "traefik.http.services.jekyll.loadbalancer.server.port=4000"
- "traefik.http.routers.jekyll.rule=Host(`site.swarm.autonomic.zone`)"
- "traefik.http.routers.jekyll.rule=Host(`autonomic.zone`)"
- "traefik.http.routers.jekyll.entrypoints=web-secure"
- "traefik.http.routers.jekyll.tls.certresolver=staging"
- "traefik.http.routers.jekyll.tls.certresolver=production"
networks:
proxy: