Files
party-mix-app/docker-compose.yml
Kirko 428548a620 feat: nginx reverse proxy, Spotify import, overlay system, UI overhaul
- Add nginx as single entry point: /api/* → backend, /* → web
- NEXT_PUBLIC_API_URL="" so all API calls are relative (go through nginx)
- Add Spotify playlist import (Client Credentials OAuth, up to 500 tracks)
- Add Yandex/Spotify tabbed import UI on /playlists
- Add stream overlay system (SSE + polling fallback, 9 styles)
- Reorganize pages into (main) route group
- Add QueuePanel, VersionsPanel, Toaster components
- Add overlay settings tab in /settings

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-28 00:45:53 +03:00

63 lines
1.3 KiB
YAML

version: '3.9'
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: partymix
POSTGRES_USER: partymix
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U partymix"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: partymix
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: partymix
GIN_MODE: release
PORT: 8080
JWT_SECRET: ${JWT_SECRET}
ALLOWED_ORIGINS: ${ALLOWED_ORIGINS:-http://localhost}
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID:-}
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET:-}
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
web:
build:
context: ./apps/web
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_URL: ""
depends_on:
- backend
restart: unless-stopped
nginx:
image: nginx:alpine
volumes:
- ./apps/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
ports:
- "${APP_PORT:-80}:80"
depends_on:
- web
- backend
restart: unless-stopped
volumes:
postgres_data: