Files
songs2vid/deploy/songs2vid/docker-compose.yml
T
Atakan Doğan ÖzbanandCursor c8015937f9 Align preview typography with FFmpeg output, add video/song title split, and ship OSS updates.
Separate YouTube video titles from on-video song/artist fields with Pro gating, serve curated fonts and watermark assets for 1:1 preview parity, and include billing/API/docs/deploy stack for self-hosted release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 16:26:19 +02:00

102 lines
2.4 KiB
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: s2vid
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: s2vid
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U s2vid -d s2vid"]
interval: 5s
timeout: 5s
retries: 10
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
web:
image: atakanozban/songs2vid:latest
restart: unless-stopped
expose:
- "3000"
env_file:
- .env
environment:
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
REDIS_URL: redis://redis:6379
UPLOAD_DIR: /app/uploads
NEXTAUTH_URL: ${NEXTAUTH_URL}
volumes:
- uploads_data:/app/uploads
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
command: >
sh -c "npx prisma db push && node server.js"
worker:
image: atakanozban/songs2vid:latest
restart: unless-stopped
env_file:
- .env
environment:
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
REDIS_URL: redis://redis:6379
UPLOAD_DIR: /app/uploads
volumes:
- uploads_data:/app/uploads
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
command: ["npx", "tsx", "worker/index.ts"]
studio:
image: atakanozban/songs2vid:latest
restart: unless-stopped
expose:
- "5555"
environment:
DATABASE_URL: postgresql://s2vid:${POSTGRES_PASSWORD}@postgres:5432/s2vid
depends_on:
postgres:
condition: service_healthy
command: ["npx", "prisma", "studio", "--hostname", "0.0.0.0", "--port", "5555", "--browser", "none"]
caddy:
image: caddy:2-alpine
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./docs-site:/srv/docs:ro
- caddy_data:/data
- caddy_config:/config
depends_on:
- web
- studio
volumes:
postgres_data:
redis_data:
uploads_data:
caddy_data:
caddy_config: