Files
SubTracker/docker-compose.yml
SmileQWQ 47b485b709 fix: support configurable container timezone
- 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
2026-04-21 11:07:09 +08:00

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}'