Files
Docwell/Docker-AIO/.env.prod.example
T
tajniak81andClaude Opus 5.5 ad26727521
CI / go (Server) (push) Successful in 16m33s
CI / go (Web-App) (push) Successful in 12m1s
CI / frontend (push) Failing after 6m32s
CI / desktop (ubuntu-latest) (push) Failing after 21m52s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / mobile (push) Failing after 5m2s
CI / docker (push) Successful in 18m56s
Docs / build (push) Successful in 10m45s
Docs / deploy (push) Skipped
Add production compose variants and base docwell-db on the PocketBase image
Docker/ and Docker-AIO/ each get docker-compose.prod.yml plus S3,
SeaweedFS and SeaweedFS-split variants, with matching .env.prod*.example
templates and a README.

docwell-db is now built FROM tajniak81/pocketbase-docker-root, which
creates the superuser and serves PocketBase on 8090; data moves to
/pb/pb_data. The boot hook applies DOCWELL_S3_* settings when set.
The AIO start script accepts PB_ENCRYPTION_KEY. The base image is
amd64-only, so the docwell-db release builds amd64 only for now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 11:39:01 +01:00

71 lines
2.9 KiB
Bash

# Docwell all-in-one: production config (Docker-AIO/docker-compose.prod.yml).
# Copy to .env and fill in, then:
# docker compose -f docker-compose.prod.yml pull
# docker compose -f docker-compose.prod.yml up -d
# --- Image -------------------------------------------------------------------
# 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):
# AIO_IMAGE=ghcr.io/docwell/docwell: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=
# 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