Files
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

54 lines
2.4 KiB
YAML

# Docwell all-in-one container.
# PB_ADMIN_PASSWORD=... docker compose up -d # released image
# PB_ADMIN_PASSWORD=... docker compose up --build # or build from this checkout
# Or cp .env.example .env, edit it, and drop the PB_ADMIN_PASSWORD=... prefix.
# Open http://localhost:3000 (admin panel: http://localhost:3000/admin/)
#
# Uploaded files stay on the pb_data volume. For S3: docker-compose.s3.yml
# (a bucket elsewhere), docker-compose.seaweedfs.yml (SeaweedFS beside this
# container) or docker-compose.seaweedfs.split.yml (the same, with its admin UI).
name: docwell-aio
services:
docwell:
image: ${DOCWELL_REGISTRY:-ghcr.io/docwell}/docwell:${DOCWELL_VERSION:-latest}
build:
context: ..
dockerfile: Docker-AIO/Dockerfile
restart: unless-stopped
environment:
PB_ADMIN_EMAIL: ${PB_ADMIN_EMAIL:-admin@docwell.test}
PB_ADMIN_PASSWORD: ${PB_ADMIN_PASSWORD:?set PB_ADMIN_PASSWORD}
# Optional settings encryption: exactly 32 characters, blank = off.
PB_ENCRYPTION_KEY: ${PB_ENCRYPTION_KEY:-}
# Links in auth emails and share links point here.
DOCWELL_WEB_URL: ${DOCWELL_WEB_URL:-http://localhost:3000}
DOCWELL_PUBLIC_URL: ${DOCWELL_WEB_URL:-http://localhost:3000}
DOCWELL_CORS_ORIGINS: ${DOCWELL_WEB_URL:-http://localhost:3000}
DOCWELL_APP_NAME: ${DOCWELL_APP_NAME:-}
DOCWELL_DRAWIO_URL: ${DOCWELL_DRAWIO_URL:-}
DOCWELL_SIGNUP_ENABLED: ${DOCWELL_SIGNUP_ENABLED:-true}
# Optional: creates the first account as superadmin while there are no accounts.
DOCWELL_ADMIN_EMAIL: ${DOCWELL_ADMIN_EMAIL:-}
DOCWELL_ADMIN_PASSWORD: ${DOCWELL_ADMIN_PASSWORD:-}
DOCWELL_ADMIN_NAME: ${DOCWELL_ADMIN_NAME:-}
DOCWELL_SIGNUP_DOMAINS: ${DOCWELL_SIGNUP_DOMAINS:-}
DOCWELL_MAX_UPLOAD_MB: ${DOCWELL_MAX_UPLOAD_MB:-50}
DOCWELL_AUDIT_RETENTION_DAYS: ${DOCWELL_AUDIT_RETENTION_DAYS:-}
DOCWELL_SMTP_HOST: ${DOCWELL_SMTP_HOST:-}
DOCWELL_SMTP_PORT: ${DOCWELL_SMTP_PORT:-587}
DOCWELL_SMTP_USERNAME: ${DOCWELL_SMTP_USERNAME:-}
DOCWELL_SMTP_PASSWORD: ${DOCWELL_SMTP_PASSWORD:-}
DOCWELL_SMTP_TLS: ${DOCWELL_SMTP_TLS:-false}
DOCWELL_MAIL_FROM: ${DOCWELL_MAIL_FROM:-no-reply@docwell.localhost}
volumes:
- ${PB_DATA:-pb_data}:/pb_data
- ${SERVER_DATA:-server_data}:/data
ports:
- "${WEB_BIND:-0.0.0.0}:${WEB_PORT:-3000}:3000"
volumes:
pb_data:
server_data: