2024-07-10 07:56:42 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
2024-07-09 12:36:39 +00:00
|
|
|
|
|
|
|
services:
|
2024-07-10 07:56:42 +00:00
|
|
|
app:
|
2024-07-09 12:36:39 +00:00
|
|
|
image: git.autonomic.zone/autonomic-cooperative/kcl-site:latest
|
2024-07-10 07:56:42 +00:00
|
|
|
networks:
|
|
|
|
- proxy
|
2024-07-09 12:36:39 +00:00
|
|
|
volumes:
|
2024-07-10 07:56:42 +00:00
|
|
|
- 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
|