TelegramPWA/docker-compose.yml
Tianrong Zhang 6968a7c337 Add Docker Compose deployment config
Multi-stage Dockerfile: node:22-alpine builder + nginx:alpine server.
nginx.conf sets COOP/COEP headers (required for SharedArrayBuffer/audio workers),
SPA fallback, and aggressive caching for content-hashed assets.
API credentials and BASE_URL passed as build args.
2026-06-11 22:29:33 -04:00

12 lines
256 B
YAML

services:
telegram-tt:
build:
context: .
args:
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
BASE_URL: ${BASE_URL:-/}
restart: unless-stopped
ports:
- "${PORT:-8080}:80"