kcl-digital-humanities-garden/docker-compose.yml

38 lines
932 B
YAML
Raw Normal View History

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