# 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. # The defaults are SpineS's; override them as stack environment variables: # SaraViewDir SaraView's config (SaraViewConf.toml) and Data directory # FilesDir the files SaraView serves, mounted at /data/files # (the Roots in SaraViewConf.toml point inside it) 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:-/media/ZimaOS-HD/AppData/SaraView}/SaraViewConf.toml:/App/Backend/SaraViewConf.toml:ro - ${SaraViewDir:-/media/ZimaOS-HD/AppData/SaraView}/Data:/data/SaraViewData - ${FilesDir:-/media/ZimaOS-HD/Storage/Files}:/data/files restart: unless-stopped