Files
SaraView/docker-compose.ghcr.yml
T
2026-09-19 14:53:01 +02:00

34 lines
1.4 KiB
YAML

# For ZimaOS (or any server that should just pull-and-run rather than
# build): install this via ZimaOS's "Install a customized app" /
# Docker Compose option, filling in your real paths below first.
#
# This is the "no local build" counterpart to docker-compose.yml, which
# still builds from source for local dev/testing.
services:
saraview:
image: ghcr.io/srhtnin/saraview:latest
container_name: SaraView
ports:
# Bind to your Tailscale IP only, e.g. "100.x.x.x:8420:8420",
# so the app is reachable over the tailnet and nothing else.
- "8420:8420"
volumes:
# Your own config, overriding the one baked into the image — edit
# Roots and SaraTag.CoreModulePath to match your real paths below.
- ./SaraViewConf.toml:/App/Backend/SaraViewConf.toml:ro
# Persistent app data: Settings/, Users.toml, Avatars/, Themes/,
# Blame/. A named volume (not a host path) is fine here — nothing
# outside SaraView needs to touch it, and this is what keeps it
# structurally unreachable from the file browser regardless of any
# hidden-file setting.
- saraview_data:/data/SaraViewData
# One mount per root you declare in SaraViewConf.toml's [Roots] table.
- /path/to/your/notes:/data/notes:ro
# SaraTag's internal folder, for read-only Book resolution.
- /path/to/SaraTag/.saratag:/data/SaraTag/.saratag:ro
restart: unless-stopped
volumes:
saraview_data: