Files
homelabstack/stacks/notes/docker-compose.yml
T
ginnoir 7aa95fa00a refactor: pure env_file stack.env convention across all stacks
Every service now reads stack.env via env_file with container-exact var
names — no ${VAR} parse-time interpolation, no Portainer UI env vars
(except stacks/dev, kept on UI-env interpolation as documented exception).

- media: drop PUID/PGID/TZ env lines (env_file covers); resolve ${ROOT}
- foundry: secrets via env_file; FOUNDRY_PATCH_URLS -> CONTAINER_PATCH_URLS
- monitoring: HOMARR_SECRET_ENCRYPTION_KEY -> SECRET_ENCRYPTION_KEY
- notify: FRESHRSS_USER composed in stack.env; TZ via env_file
- owncloud: container-exact OWNCLOUD_*/MYSQL_* keys; runtime $$ healthcheck
- resume/famapp: composites (DATABASE_URL etc.) written out in stack.env
- authentik: container-exact keys; image tag pinned in compose
- notes: couchdb creds via env_file
- remote: gains stack.env (no secrets; convention completeness)
- CLAUDE.md: env convention, valhalla-lab registration-only note, correct
  on-host Portainer working-copy path (/config/portainer/compose/<id>)

Validated with docker compose config on valhalla for all 15 stacks.
2026-06-09 16:03:47 -05:00

43 lines
1.3 KiB
YAML

# notes stack — personal knowledge base / PKM backbone.
#
# CouchDB powers obsidian-livesync for real-time Obsidian vault sync
# across all devices. Vault data lives at /config/couchdb/data on SSD.
#
# POST-DEPLOY (one-time setup):
# 1. Open https://obsidian.ginnoir.com/_utils and sign in as admin.
# 2. Settings → CORS → Enable CORS, add origins:
# app://obsidian.md
# capacitor://localhost
# http://localhost
# 3. In Obsidian: install the "Self-hosted LiveSync" plugin,
# point it at https://obsidian.ginnoir.com with your creds.
# 4. Let the setup wizard create the 'obsidian' database.
#
# Claude integration:
# The CouchDB REST API is the read/write surface for the vault.
# All notes are docs in the 'obsidian' database.
# GET https://obsidian.ginnoir.com/obsidian/_all_docs?include_docs=true
# returns all notes; each doc has a 'data' field with the markdown content.
services:
couchdb:
container_name: couchdb
image: couchdb:3
restart: unless-stopped
networks: [notes, edge]
env_file:
- stack.env
volumes:
- /config/couchdb/data:/opt/couchdb/data
- /config/couchdb/etc:/opt/couchdb/etc/local.d
ports:
- "5984:5984"
networks:
notes:
name: notes
driver: bridge
edge:
name: edge
external: true