---
version: "3.7"
services:
jekyll:
command: >
jekyll serve \
--verbose \
--config /srv/jekyll/_config_prod.yml \
--trace
configs:
- source: config-yml-prod-v1
target: /srv/jekyll/_config_prod.yml
networks:
- proxy
volumes:
- type: bind
source: ./
target: /srv/jekyll
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
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.entrypoints=web-secure"
- "traefik.http.routers.jekyll.tls.certresolver=staging"
proxy:
external: true
config-yml-prod-v1:
file: _config_prod.yml