Files
SubTracker/docker-compose.full.yml
SmileQWQ 006d14adbb docs: improve deployment docs and release assets
- rewrite README for GitHub presentation and add env copy steps for local development
- expand DEPLOYMENT guide with API-only and full compose deployment paths
- add apps/api/.env.example for development bootstrap
- add docker-compose.full.yml and nginx config for full self-hosted deployment
- update release workflow to publish a deployment bundle alongside web dist assets
2026-04-17 08:40:01 +08:00

27 lines
766 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:-http://localhost:8080}
LOG_LEVEL: ${LOG_LEVEL:-warn}
volumes:
- ./data:/app/data
- ./data/logos:/app/apps/api/storage/logos
web:
image: nginx:1.27-alpine
container_name: subtracker-web
restart: unless-stopped
depends_on:
- api
volumes:
- ./web-dist:/usr/share/nginx/html:ro
- ./docker/nginx.full.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- "${WEB_PORT:-8080}:80"