mirror of
https://github.com/Smile-QWQ/SubTracker.git
synced 2026-05-22 00:03:33 +08:00
- add TZ to API compose defaults and example env config - keep tzdata in the image without hardcoding a single timezone - apply the runtime TZ value from entrypoint so users can switch timezones cleanly # Conflicts: # apps/api/.env.example
18 lines
561 B
YAML
18 lines
561 B
YAML
services:
|
|
api:
|
|
image: ${SUBTRACKER_API_IMAGE:-ghcr.io/smile-qwq/subtracker-api:latest}
|
|
container_name: subtracker-api
|
|
restart: unless-stopped
|
|
environment:
|
|
PORT: ${PORT:-3001}
|
|
HOST: ${HOST:-0.0.0.0}
|
|
DATABASE_URL: ${DATABASE_URL:-file:/app/data/subtracker.db}
|
|
WEB_ORIGIN: ${WEB_ORIGIN:-https://subtracker.example.com}
|
|
LOG_LEVEL: ${LOG_LEVEL:-warn}
|
|
TZ: ${TZ:-Asia/Shanghai}
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./data/logos:/app/apps/api/storage/logos
|
|
ports:
|
|
- '${PORT:-3001}:${PORT:-3001}'
|