Files
2026-10-30 11:04:03 +10:00

56 lines
2.4 KiB
YAML

version: "3.7"
services:
app_proxy:
environment:
APP_HOST: hermitstash_web_1
APP_PORT: 3000
web:
image: ghcr.io/dotcoocoo/hermitstash:1.15.13@sha256:8d8ebd4a5638baccacc1804f6eb51ddcae274075cb601157738a440fc6eac23c
user: "1000:1000"
init: true
restart: on-failure
stop_grace_period: 1m
shm_size: "256m"
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/health',function(r){process.exit(r.statusCode===200?0:1)}).on('error',function(){process.exit(1)})"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
volumes:
- ${APP_DATA_DIR}/data/db:/app/data
- ${APP_DATA_DIR}/data/uploads:/app/uploads
# Admin-uploaded custom branding (logo, favicon, login background)
# land here. Image ships /app/public/img/custom owned by the in-image
# `hermit` system user; mounting a 1000-owned bind on top gives the
# rootless container a writable surface for these uploads.
- ${APP_DATA_DIR}/data/custom:/app/public/img/custom
environment:
UMASK: "022"
TZ: "Etc/UTC"
NODE_ENV: production
# The addresses app_proxy connects from, as a CIDR. The app rejects
# "true" and discards the setting, which attributes every request to
# app_proxy: one rate-limit bucket shared by all clients, the proxy's
# address in the audit log, and the admin network fence matched against
# the proxy rather than the admin. 10.21.0.0/16 is umbrel_main_network,
# declared in umbrel's own compose as `subnet: $NETWORK_IP/16` with
# NETWORK_IP=10.21.0.0.
TRUST_PROXY: "10.21.0.0/16"
# Public origin — used to build share URLs in upload responses and to
# pin the WebAuthn relying-party origin. ${DEVICE_DOMAIN_NAME} is the
# umbrel-supplied hostname (e.g. umbrel.local); the app reaches it
# through the app_proxy on port 3081 (declared in umbrel-app.yml).
RP_ORIGIN: "http://${DEVICE_DOMAIN_NAME}:3081"
# Skip email confirmation on signup. Umbrel deployments are typically
# single-operator (the device owner is the user); requiring a verified
# email round-trip adds friction without a meaningful security gain.
# Operators who want email verification can flip this in the admin UI.
EMAIL_VERIFICATION: "false"