Files
music-hub/docker-compose.prod.yml
Robin Choice e420ed198b Initial commit: Music Hub collaboration platform
Full-stack music production collaboration tool with:
- SvelteKit frontend with Design System (CSS vars, 8 shared components)
- Hono API with auth, projects, tracks, versions, comments
- PostgreSQL + Drizzle ORM (8 tables, roles, permissions)
- S3-compatible storage with presigned upload URLs
- wavesurfer.js audio player with waveform visualization
- A/B version comparison with synchronized playback
- Timestamped comments with threading and resolve workflow
- Magic Link authentication with Resend email integration
- Background audio processing (ffmpeg transcode + waveform peaks)
- Role-based access control (Owner, Engineers, Artist, Label, Management, Viewer)
- Toast notifications, skeleton loading, responsive layout
- Docker deployment setup (API + Web + Postgres)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 13:23:10 +02:00

45 lines
982 B
YAML

services:
api:
build:
context: .
dockerfile: Dockerfile.api
ports:
- "3000:3000"
environment:
- DATABASE_URL=${DATABASE_URL}
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_BUCKET=${S3_BUCKET}
- APP_URL=${APP_URL}
- MAGIC_LINK_SECRET=${MAGIC_LINK_SECRET}
- RESEND_API_KEY=${RESEND_API_KEY}
- EMAIL_FROM=${EMAIL_FROM}
- NODE_ENV=production
depends_on:
- postgres
restart: unless-stopped
web:
build:
context: .
dockerfile: Dockerfile.web
ports:
- "5173:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: musichub
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: musichub
volumes:
- pgdata:/var/lib/postgresql/data
restart: unless-stopped
volumes:
pgdata: