mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-24 17:00:22 +00:00
Create docker-compose.yaml
This commit is contained in:
parent
e4516f9a91
commit
d646168662
1 changed files with 27 additions and 0 deletions
27
Trilium/docker-compose.yaml
Normal file
27
Trilium/docker-compose.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue