When DOCWELL_ADMIN_EMAIL and DOCWELL_ADMIN_PASSWORD are set (and optionally DOCWELL_ADMIN_NAME), docwell-server creates that account as superadmin on start while the instance has no accounts. Once any account exists it changes nothing, so restarts never reset the password or a role changed in the admin panel. Without them, the first sign-up still wins. Pass the variables through every compose file, document them in the .env examples and the configuration, access and quick-start guides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
1.6 KiB
YAML
42 lines
1.6 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
|
|
# Open http://localhost:3000 (admin panel: http://localhost:3000/admin/)
|
|
|
|
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}
|
|
# Links in auth emails point here.
|
|
DOCWELL_WEB_URL: ${DOCWELL_WEB_URL:-http://localhost:3000}
|
|
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_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
|
|
- server_data:/data
|
|
ports:
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
pb_data:
|
|
server_data:
|