services: trilium-sync: image: triliumnext/trilium:latest container_name: trilium-sync environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - TRILIUM_SYNC_SERVER=true volumes: - /path/to/trilium-sync:/home/node/trilium-data ports: - ${HTTP_PORT}:8080 restart: unless-stopped networks: - trillium-net networks: trillium-net: external: true