33 lines
988 B
YAML
33 lines
988 B
YAML
name: trilium
|
|
|
|
services:
|
|
trilium:
|
|
container_name: trilium
|
|
image: triliumnext/notes:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- TRILIUM_DATA_DIR=/data
|
|
- TRILIUM_NETWORK_TRUSTEDREVERSEPROXY=uniquelocal
|
|
- TRILIUM_GENERAL_INSTANCENAME="Trilium Notes"
|
|
# - TRILIUM_OAUTH_BASE_URL=https://id.example.com/authorize
|
|
# - TRILIUM_OAUTH_CLIENT_ID=your-client-id
|
|
# - TRILIUM_OAUTH_CLIENT_SECRET=your-client-secret
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- "./data:/data"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.trilium.rule=Host(`trilium.example.com`)"
|
|
- "traefik.http.routers.trilium.entrypoints=websecure"
|
|
- "traefik.http.routers.trilium.service=trilium"
|
|
- "traefik.http.services.trilium.loadBalancer.server.port=8080"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|