36 lines
1011 B
YAML
36 lines
1011 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
jekyll:
|
|
image: decentral1se/autonomic.zone:latest
|
|
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:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.jekyll.loadbalancer.server.port=4000"
|
|
- "traefik.http.routers.jekyll.rule=Host(`old.autonomic.zone`) || Host(`www.old.autonomic.zone`)"
|
|
- "traefik.http.routers.jekyll.entrypoints=web-secure"
|
|
- "traefik.http.routers.jekyll.tls.certresolver=production"
|
|
- "traefik.http.routers.jekyll.tls.options=default@file"
|
|
- "traefik.http.routers.jekyll.middlewares=security@file"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|