This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/roles/static/templates/docker-compose.yml.j2

36 lines
1.3 KiB
Text
Raw Normal View History

2023-01-26 07:20:38 +00:00
version: "3.8"
services:
blog:
image: nginx
container_name: blog
2023-01-27 10:35:01 +00:00
restart: always
2023-01-26 07:20:38 +00:00
volumes:
- {{ service_dir }}/git/templates:/etc/nginx/templates
- {{ service_dir }}/git/_site:/var/www/blog
- {{ service_dir }}/nginx.conf:/etc/nginx/conf.d/default.conf
- {{ service_dir }}/security.txt:/var/www/blog/security.txt
2023-01-26 07:20:38 +00:00
networks:
- traefik
2023-02-25 14:06:17 +00:00
extra_hosts:
- "host.docker.internal:host-gateway"
2023-01-26 07:20:38 +00:00
labels:
- traefik.enable=true
2023-01-26 07:20:38 +00:00
- traefik.http.routers.blog.entrypoints=websecure
2023-02-25 14:06:17 +00:00
- "traefik.http.routers.blog.rule=(Host(`{{ domain_name_pim }}`) || Path(`/security.txt`, `/.well-known/security.txt`, `/_matrix`, `/.well-known/matrix/`))"
2023-01-26 07:20:38 +00:00
- traefik.http.routers.blog.tls=true
2023-02-08 07:27:30 +00:00
- traefik.http.routers.blog.tls.certresolver=letsencrypt
2023-01-26 07:20:38 +00:00
- traefik.http.routers.blog.service=blog
- traefik.http.services.blog.loadbalancer.server.port=80
2023-02-25 14:06:17 +00:00
- traefik.http.routers.matrix-fed.entrypoints=matrix
- traefik.http.routers.matrix-fed.rule=Host(`matrix.pim.kunis.nl`)
- traefik.http.routers.matrix-fed.tls=true
- traefik.http.routers.matrix-fed.tls.certresolver=letsencrypt
- traefik.http.routers.matrix-fed.service=matrix-fed
- traefik.http.services.matrix-fed.loadbalancer.server.port=8448
2023-01-26 07:20:38 +00:00
networks:
traefik:
external: true