This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/hedgedoc/docker-stack.yml.j2

45 lines
1.2 KiB
Text
Raw Normal View History

2023-05-02 15:46:56 +00:00
# vi: ft=yaml
version: '3'
networks:
traefik:
external: true
volumes:
uploads:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/hedgedoc/uploads"
2023-05-02 15:46:56 +00:00
services:
2023-05-02 15:46:56 +00:00
hedgedoc-app:
image: quay.io/hedgedoc/hedgedoc:1.9.7
environment:
- CMD_DB_URL=postgres://hedgedoc:{{ database_passwords.hedgedoc }}@192.168.30.10:5432/hedgedoc
2023-06-17 09:27:41 +00:00
- CMD_DOMAIN=md.kun.is
2023-05-02 15:46:56 +00:00
- CMD_PORT=3000
- CMD_URL_ADDPORT=false
- CMD_ALLOW_ANONYMOUS=true
- CMD_ALLOW_EMAIL_REGISTER=false
- CMD_PROTOCOL_USESSL=true
- CMD_SESSION_SECRET={{ session_secret }}
volumes:
- type: volume
source: uploads
2023-05-02 15:46:56 +00:00
target: /hedgedoc/public/uploads
volume:
nocopy: true
2023-05-02 15:46:56 +00:00
networks:
- traefik
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.hedgedoc.entrypoints=websecure
2023-06-17 09:27:41 +00:00
- traefik.http.routers.hedgedoc.rule=Host(`md.kun.is`)
2023-05-02 15:46:56 +00:00
- traefik.http.routers.hedgedoc.tls=true
- traefik.http.routers.hedgedoc.tls.certresolver=letsencrypt
- traefik.http.routers.hedgedoc.service=hedgedoc
- traefik.http.services.hedgedoc.loadbalancer.server.port=3000
- traefik.docker.network=traefik