Files
Docwell/Docker-AIO/.env.prod.seaweedfs.split.example
T
tajniak81andClaude Opus 5.5 f7a2ded680
CI / go (Media) (push) Successful in 13m22s
CI / go (Server) (push) Failing after 24m20s
CI / go (Web-App) (push) Successful in 14m3s
CI / frontend (push) Failing after 9m19s
CI / mobile (push) Failing after 6m19s
CI / docker (push) Successful in 20m37s
CI / desktop (ubuntu-latest) (push) Successful in 1h9m43s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
Give the all-in-one setup every storage shape, from source and baked in
Docker-AIO now has one compose file per storage shape for each way of
getting the image, each with an .env template of the same name:
- From source: docker-compose.yml (now with .env.example),
  docker-compose.s3.yml, docker-compose.seaweedfs.yml and
  docker-compose.seaweedfs.split.yml. The SeaweedFS ones run it in
  containers beside the plain image, as the prod files did before.
- Production: docker-compose.prod.seaweedfs*.yml now run one container
  from new images with SeaweedFS built in. Dockerfile.seaweedfs runs
  `weed server -s3`; Dockerfile.seaweedfs.split runs master, volume,
  filer, S3 gateway and admin UI as separate processes, and seeds
  PocketBase's key into the filer's IAM store so the admin UI cannot
  displace it.

SeaweedFS listens on the container's loopback (volume server on 8081,
as docwell-server has 8080); only the split image's admin UI is
published, on loopback by default. start.sh now also watches the
processes a wrapper started, so the container restarts as a whole when
any SeaweedFS role stops. The release workflow publishes the two new
images, docwell-seaweedfs and docwell-seaweedfs-split.

Existing SeaweedFS installs keep their data: every file uses the
`weed server -dir` layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 19:29:46 +01:00

116 lines
4.9 KiB
Bash

# Docwell all-in-one: production config (Docker-AIO/docker-compose.prod.seaweedfs.split.yml).
# Copy to .env and fill in, then:
# docker compose -f docker-compose.prod.seaweedfs.split.yml pull (or build, with this checkout)
# docker compose -f docker-compose.prod.seaweedfs.split.yml up -d
# --- Image -------------------------------------------------------------------
# The docwell-seaweedfs-split image: the all-in-one with SeaweedFS built in. For images
# released on a Gitea server, DOCWELL_REGISTRY=<gitea host>/<owner>. Pin a
# version in production.
DOCWELL_REGISTRY=ghcr.io/docwell
DOCWELL_VERSION=latest
# Or name the image outright (a mirror, a hotfix tag, where `build` + `push`
# should put it):
# AIO_IMAGE=ghcr.io/docwell/docwell-seaweedfs-split:1.0.0
# --- PocketBase superuser ----------------------------------------------------
# Created or updated on every boot; the bundled server signs in with it.
# REQUIRED.
PB_ADMIN_EMAIL=admin@example.com
PB_ADMIN_PASSWORD=change-me-long-password
# Encrypts PocketBase's stored settings (SMTP password, S3 secret). Exactly 32
# characters, e.g. `openssl rand -hex 16`. Blank = off. Set it before the first
# boot and keep a copy: the settings cannot be read without it.
PB_ENCRYPTION_KEY=
# --- Public address ----------------------------------------------------------
# Where browsers reach Docwell. Behind a reverse proxy, the https:// name.
DOCWELL_WEB_URL=http://localhost:3000
# Name shown in emails and the browser tab. Blank = Docwell.
DOCWELL_APP_NAME=
# The Draw.io editor to embed. Blank = https://embed.diagrams.net; point it at
# a self-hosted jgraph/drawio to keep drawings on your network.
DOCWELL_DRAWIO_URL=
# --- Accounts ----------------------------------------------------------------
# Sign-up defaults until a superadmin changes them in the admin panel. The
# first account can always sign up and becomes the instance admin.
DOCWELL_SIGNUP_ENABLED=true
# Comma-separated email domains allowed to sign up (blank = any).
DOCWELL_SIGNUP_DOMAINS=
# Optional: the first account, created as superadmin on start while the
# instance has no accounts. Later starts leave it alone (change it in the
# admin panel). Password: 8 characters or more. Blank = first sign-up wins.
DOCWELL_ADMIN_EMAIL=
DOCWELL_ADMIN_PASSWORD=
DOCWELL_ADMIN_NAME=
# Largest attachment in MB (1-100).
DOCWELL_MAX_UPLOAD_MB=50
# Days to keep audit log entries. Blank = 365, 0 = forever.
DOCWELL_AUDIT_RETENTION_DAYS=
# --- Email -------------------------------------------------------------------
# Verification, password reset and sign-in codes, sent by PocketBase. Blank
# host = email off (and the admin panel's Mail screen stays in charge).
DOCWELL_SMTP_HOST=
DOCWELL_SMTP_PORT=587
DOCWELL_SMTP_USERNAME=
DOCWELL_SMTP_PASSWORD=
DOCWELL_SMTP_TLS=false
DOCWELL_MAIL_FROM=no-reply@example.com
# --- Port --------------------------------------------------------------------
# The single published port. Behind a reverse proxy on this host, bind it to
# 127.0.0.1.
WEB_BIND=0.0.0.0
WEB_PORT=3000
# --- Storage -----------------------------------------------------------------
# Docker-managed named volumes by default; set absolute host paths for bind
# mounts, e.g. PB_DATA=/srv/docwell/pb_data.
# PB_DATA: database, uploaded files, PocketBase backups. Back this up.
PB_DATA=pb_data
# SERVER_DATA: the search index, rebuilt from the database when missing.
SERVER_DATA=server_data
# --- File storage: SeaweedFS -------------------------------------------------
# Uploaded files go to a SeaweedFS bucket inside the container instead of
# PB_DATA; the database and PocketBase's backups stay where they are.
#
# One key pair, used by both sides: SeaweedFS accepts it and PocketBase signs
# in with it. REQUIRED: the container refuses to start without it. Generate
# long random values, e.g. `openssl rand -hex 20`.
DOCWELL_S3_ACCESS_KEY=
DOCWELL_S3_SECRET=
DOCWELL_S3_BUCKET=docwell
DOCWELL_S3_REGION=us-east-1
# SEAWEED_DATA: where SeaweedFS keeps the files. Named volume by default, or an
# absolute host path. Back it up together with PB_DATA.
SEAWEED_DATA=seaweed_data
# SeaweedFS version built into the image when you `build`; left commented out,
# the Dockerfile's pin holds. A new one means a rebuild.
# SEAWEED_VERSION=4.45
# Existing uploads are NOT copied when this is switched on. See README.md,
# "Switching an existing install to S3".
# --- SeaweedFS admin UI ------------------------------------------------------
# Cluster view and Object Store -> Users (mint and revoke S3 keys). REQUIRED:
# the panel can hand out keys to the bucket, so it never runs without a login.
SEAWEED_ADMIN_USER=admin
SEAWEED_ADMIN_PASSWORD=
# Optional view-only login.
SEAWEED_ADMIN_READONLY_USER=
SEAWEED_ADMIN_READONLY_PASSWORD=
# Loopback by default; open http://localhost:23646 on the host or tunnel to it.
SEAWEED_ADMIN_BIND=127.0.0.1
SEAWEED_ADMIN_PORT=23646
# The admin UI's session key and maintenance settings.
SEAWEED_ADMIN_DATA=seaweed_admin