Load business config as JSONC (comments + trailing commas) via an in-repo stripper then stdlib json — no new deps. Default path prefers config.jsonc, falls back to legacy config.json. Auth write-back targets only sibling secrets.json so JSONC comments are never wiped; secrets overlay merges on load. Examples, compose, Docker, docs, favsort and tools all share the same loader. Phase A only — no DB settings migration.
17 lines
407 B
YAML
17 lines
407 B
YAML
services:
|
|
board:
|
|
build: .
|
|
image: reaction-board:latest
|
|
container_name: reaction-board
|
|
restart: unless-stopped
|
|
init: true
|
|
environment:
|
|
TZ: Asia/Shanghai
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- ./config.jsonc:/config/config.jsonc
|
|
- ./secrets.json:/config/secrets.json
|
|
- ./data:/data
|
|
command: ["python", "app.py", "--config", "/config/config.jsonc"]
|