app-store/apps/trilium/docker-compose.yml

36 lines
1.5 KiB
YAML
Raw Normal View History

2023-09-05 18:26:58 +00:00
services:
2023-09-05 18:27:19 +00:00
trilium:
image: ghcr.io/zadam/trilium:0.62.5
2023-09-05 18:27:19 +00:00
container_name: trilium
2023-09-05 18:26:58 +00:00
ports:
2023-09-05 18:27:19 +00:00
- ${APP_PORT}:8080
2023-09-05 18:26:58 +00:00
volumes:
2023-09-05 18:27:19 +00:00
- ${APP_DATA_DIR}/home/node/trilium-data
2023-09-05 18:26:58 +00:00
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
2023-09-05 18:27:19 +00:00
traefik.http.middlewares.trilium-web-redirect.redirectscheme.scheme: https
traefik.http.services.trilium.loadbalancer.server.port: 8080
2023-09-05 18:26:58 +00:00
# Web
2023-09-05 18:27:19 +00:00
traefik.http.routers.trilium-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.trilium-insecure.entrypoints: web
traefik.http.routers.trilium-insecure.service: trilium
traefik.http.routers.trilium-insecure.middlewares: trilium-web-redirect
2023-09-05 18:26:58 +00:00
# Websecure
2023-09-05 18:27:19 +00:00
traefik.http.routers.trilium.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.trilium.entrypoints: websecure
traefik.http.routers.trilium.service: trilium
traefik.http.routers.trilium.tls.certresolver: myresolver
2023-09-05 18:26:58 +00:00
# Local domain
2023-09-05 18:27:19 +00:00
traefik.http.routers.trilium-local-insecure.rule: Host(`trilium.${LOCAL_DOMAIN}`)
traefik.http.routers.trilium-local-insecure.entrypoints: web
traefik.http.routers.trilium-local-insecure.service: trilium
traefik.http.routers.trilium-local-insecure.middlewares: trilium-web-redirect
2023-09-05 18:26:58 +00:00
# Local domain secure
2023-09-05 18:27:19 +00:00
traefik.http.routers.trilium-local.rule: Host(`trilium.${LOCAL_DOMAIN}`)
traefik.http.routers.trilium-local.entrypoints: websecure
traefik.http.routers.trilium-local.service: trilium
2023-09-05 18:36:08 +00:00
traefik.http.routers.trilium-local.tls: true