This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/docker-compose.production.yml

35 lines
859 B
YAML
Raw Normal View History

2020-05-01 08:30:31 +00:00
---
version: "3.7"
services:
jekyll:
command: |
2020-05-01 08:46:09 +00:00
jekyll serve --watch --verbose --config /srv/jekyll/_config_prod.yml --trace
2020-05-01 08:30:31 +00:00
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"
2020-05-01 08:41:21 +00:00
- "traefik.http.services.jekyll.loadbalancer.server.port=4000"
2020-05-01 08:35:34 +00:00
- "traefik.http.routers.jekyll.rule=Host(`site.swarm.autonomic.zone`)"
- "traefik.http.routers.jekyll.entrypoints=web-secure"
- "traefik.http.routers.jekyll.tls.certresolver=staging"
2020-05-01 08:30:31 +00:00
networks:
proxy:
external: true
configs:
config-yml-prod-v1:
file: _config_prod.yml