Notes/docker-compose.yml
Claudio Schaad 868be4bdda Support running behind a TLS-terminating reverse proxy
Add TRUST_PROXY so Express honors X-Forwarded-Proto from e.g. Nginx Proxy
Manager. Without it, SECURE_COOKIES=true behind the proxy meant the session
cookie was never set and login didn't stick. Document the NPM setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 17:10:50 +01:00

18 lines
599 B
YAML

services:
notes:
build: .
image: notes:latest
restart: unless-stopped
ports:
- "${HOST_PORT:-3000}:3000"
environment:
SESSION_SECRET: ${SESSION_SECRET}
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
SECURE_COOKIES: ${SECURE_COOKIES:-false}
TRUST_PROXY: ${TRUST_PROXY:-false}
NEXTCLOUD_URL: ${NEXTCLOUD_URL}
NEXTCLOUD_USERNAME: ${NEXTCLOUD_USERNAME}
NEXTCLOUD_APP_PASSWORD: ${NEXTCLOUD_APP_PASSWORD}
COLLECTIVE_NAME: ${COLLECTIVE_NAME}
PARENT_PAGE_TITLE: ${PARENT_PAGE_TITLE:-Reading Notes}