Skip to content

Instantly share code, notes, and snippets.

@sriperinkulam
Created May 7, 2020 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sriperinkulam/60323d29922069887f627ccedc65bad3 to your computer and use it in GitHub Desktop.
Save sriperinkulam/60323d29922069887f627ccedc65bad3 to your computer and use it in GitHub Desktop.
Docker compose file for the Trilium notes app
# Assumptions:
# Traefik container is already up and running along with the corresponding network
version: '3.7'
services:
web:
image: zadam/trilium:0.42.1
volumes:
- ${VOLUME_PATH}trilium-data:/root/trilium-data
deploy:
labels:
- traefik.port=8080
- traefik.enable=true
- traefik.frontend.rule=Host:${DOMAIN:-notes.localhost}
networks:
- traefik
volumes:
trilium-data:
networks:
traefik:
external: true
name: traefik-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment