35 lines
846 B
YAML
35 lines
846 B
YAML
|
---
|
||
|
version: "3.7"
|
||
|
|
||
|
services:
|
||
|
jekyll:
|
||
|
command: |
|
||
|
jekyll serve --verbose --config /srv/jekyll/_config_prod.yml
|
||
|
configs:
|
||
|
- source: config-yml-prod-v1
|
||
|
target: /srv/jekyll/_config_prod.yml
|
||
|
networks:
|
||
|
- proxy
|
||
|
deploy:
|
||
|
mode: replicated
|
||
|
replicas: 1
|
||
|
update_config:
|
||
|
failure_action: rollback
|
||
|
placement:
|
||
|
constraints:
|
||
|
- node.role == manager
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.http.services.traefik.loadbalancer.server.port=web"
|
||
|
- "traefik.http.routers.traefik.rule=Host(`site.swarm.autonomic.zone`)"
|
||
|
- "traefik.http.routers.traefik.entrypoints=web-secure"
|
||
|
- "traefik.http.routers.traefik.tls.certresolver=staging"
|
||
|
|
||
|
networks:
|
||
|
proxy:
|
||
|
external: true
|
||
|
|
||
|
configs:
|
||
|
config-yml-prod-v1:
|
||
|
file: _config_prod.yml
|