Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
60 lines (59 loc) · 2.77 KB
/
Copy pathcompose.yaml
File metadata and controls
60 lines (59 loc) · 2.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Production-oriented single-host deployment.
# Put the browser-facing HTTP(S) DOCA_ORIGIN in .env.
# Use a reverse proxy for HTTPS or internal HTTP; forward to 127.0.0.1:39120.
# The published image is docker.io/smartdoca/doca:0.3.13.
# `docker compose up -d` pulls that tag. Add `--build` to build from this checkout.
services:
doca:
build:
context: .
dockerfile: Dockerfile
image: docker.io/smartdoca/doca:0.3.13
pull_policy: always
restart: unless-stopped
init: true
stop_grace_period: 30s
environment:
NODE_ENV: production
# Obsolete configuration is forwarded only so startup rejects it explicitly.
DOCA_PDF_CHROMIUM:
DOCA_ORIGIN: "${DOCA_ORIGIN:?Set the HTTP(S) origin in .env}"
DOCA_HOST: 0.0.0.0
DOCA_PORT: "39120"
DOCA_SESSION_TTL_SECONDS: "${DOCA_SESSION_TTL_SECONDS-86400}"
DOCA_MOBILE_SESSION_TTL_SECONDS: "${DOCA_MOBILE_SESSION_TTL_SECONDS-15552000}"
DOCA_DATABASE: "${DOCA_DATABASE:-sqlite}"
DOCA_DATABASE_URL: "${DOCA_DATABASE_URL:-}"
DOCA_DATABASE_POOL_MAX: "${DOCA_DATABASE_POOL_MAX:-10}"
# Inherit only when configured; unset values are omitted from the container.
DOCA_PLUGIN_DATABASE_PATH:
DOCA_PLUGIN_DATABASE_URL:
DOCA_PLUGIN_DATABASE_POOL_MAX:
# Forward obsolete settings only so startup can reject them explicitly.
DOCA_PLUGIN_DATABASE_DIR:
DOCA_PLUGIN_DATABASES_JSON:
DOCA_WEBHOOK_DATABASE_URL: "${DOCA_WEBHOOK_DATABASE_URL:-}"
DOCA_REDIS_URL: "${DOCA_REDIS_URL:-}"
DOCA_REDIS_PREFIX: "${DOCA_REDIS_PREFIX:-doca}"
DOCA_INSTANCE_ID: "${DOCA_INSTANCE_ID:-}"
DOCA_TRUST_PROXY: "${DOCA_TRUST_PROXY:-}"
DOCA_SQLITE_PATH: /data/doca.db
DOCA_AI_SQLITE_PATH: /data/ai.db
DOCA_AI_IMAGE_MAX_ATTEMPTS_PER_PAGE: "${DOCA_AI_IMAGE_MAX_ATTEMPTS_PER_PAGE-5}"
DOCA_BOOK_BATCH_CHECKPOINTS: "${DOCA_BOOK_BATCH_CHECKPOINTS-on}"
DOCA_FILE_STORE_ID: "${DOCA_FILE_STORE_ID:?Set the shared file store ID}"
# Local roots must refer to writable persistent mounts, such as /data/storage.
# Development .env paths (./data/...) resolve under the image's /app directory.
DOCA_FILE_STORES_JSON: "${DOCA_FILE_STORES_JSON:?Set file storage environment configuration}"
DOCA_CREDENTIAL_MASTER_KEY: "${DOCA_CREDENTIAL_MASTER_KEY:?Generate a persistent key with openssl rand -hex 32 and set it in .env}"
DOCA_DATA_DIR: /data
DOCA_PLUGINS_DIR: "${DOCA_PLUGINS_DIR:-/data/plugins}"
DOCA_PLUGIN_NPM_REGISTRY: ${DOCA_PLUGIN_NPM_REGISTRY:-https://registry.npmjs.org}
DOCA_PLUGIN_STORE_URL: "${DOCA_PLUGIN_STORE_URL:-https://store.smartdoca.cc}"
DOCA_ASSET_BASE: "${DOCA_ASSET_BASE:-}"
ports:
- "127.0.0.1:39120:39120"
volumes:
- doca_data:/data
volumes:
doca_data: