From d646168662b54a01b54bd9219138904b373c27bd Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Tue, 3 Oct 2023 16:23:00 +0100 Subject: [PATCH] Create docker-compose.yaml --- Trilium/docker-compose.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Trilium/docker-compose.yaml diff --git a/Trilium/docker-compose.yaml b/Trilium/docker-compose.yaml new file mode 100644 index 0000000..f995185 --- /dev/null +++ b/Trilium/docker-compose.yaml @@ -0,0 +1,27 @@ +version: '2.1' +services: + trilium: + image: zadam/trilium + restart: always + environment: + - TRILIUM_DATA_DIR=/home/node/trilium-data + volumes: + - /home/ubuntu/docker/trilium:/home/node/trilium-data + networks: + proxy: + labels: + - "traefik.enable=true" + - "traefik.http.routers.trilium.entrypoints=http" + - "traefik.http.routers.trilium.rule=Host(`trilium.yourdomain.com`)" + - "traefik.http.middlewares.trilium-https-redirect.redirectscheme.scheme=https" + - "traefik.http.routers.trilium.middlewares=trilium-https-redirect" + - "traefik.http.routers.trilium-secure.entrypoints=https" + - "traefik.http.routers.trilium-secure.rule=Host(`trilium.yourdomain.com`)" + - "traefik.http.routers.trilium-secure.tls=true" + - "traefik.http.routers.trilium-secure.service=trilium" + - "traefik.http.services.trilium.loadbalancer.server.port=8080" + - "traefik.docker.network=proxy" + +networks: + proxy: + external: true