38 lines
932 B
YAML
38 lines
932 B
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: git.autonomic.zone/autonomic-cooperative/kcl-site:latest
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- html_content:/usr/share/nginx/html
|
|
configs:
|
|
- source: nginx_conf
|
|
target: /etc/nginx/nginx.conf
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}-jekyll.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.${STACK_NAME}-jekyll.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}-jekyll.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}-jekyll.tls.certresolver=production"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
|
|
volumes:
|
|
html_content:
|
|
|
|
configs:
|
|
nginx_conf:
|
|
name: ${STACK_NAME}_nginx_conf_${NGINX_CONF_VERSION}
|
|
file: nginx.conf
|
|
template_driver: golang
|