mirror of
https://git.srhtnin.garden/sarah/SaraView.git
synced 2026-10-13 18:28:14 +02:00
29 lines
1.3 KiB
YAML
29 lines
1.3 KiB
YAML
# The server deployment (SpineS), run as a Portainer stack straight from
|
|
# this repo: Portainer clones it and builds the image from the Dockerfile on
|
|
# every deploy, so there's no image registry involved. See README.md,
|
|
# "Running on the Server".
|
|
#
|
|
# Paths are absolute host paths on the server: Portainer's copy of the repo
|
|
# lives inside Portainer (on RibS), so "./something" wouldn't point at SpineS.
|
|
# Set these as stack environment variables in Portainer:
|
|
# NotesDir the notes directory to serve (required)
|
|
# SaraTagDir SaraTag's .saratag directory (required)
|
|
# SaraViewDir where SaraView's config and data live
|
|
# (default /DATA/AppData/SaraView, the ZimaOS convention)
|
|
services:
|
|
saraview:
|
|
build: .
|
|
image: saraview:server
|
|
# Always build from the checked-out commit instead of looking for a
|
|
# prebuilt image anywhere.
|
|
pull_policy: build
|
|
container_name: SaraView
|
|
ports:
|
|
- "8420:8420"
|
|
volumes:
|
|
- ${SaraViewDir:-/DATA/AppData/SaraView}/SaraViewConf.toml:/App/Backend/SaraViewConf.toml:ro
|
|
- ${SaraViewDir:-/DATA/AppData/SaraView}/Data:/data/SaraViewData
|
|
- ${NotesDir:?Set NotesDir to the notes directory on the server}:/data/notes:ro
|
|
- ${SaraTagDir:?Set SaraTagDir to the .saratag directory on the server}:/data/SaraTag/.saratag:ro
|
|
restart: unless-stopped
|