2025-10-29 08:40:56 -04:00
|
|
|
---
|
2025-10-18 09:14:10 -04:00
|
|
|
services:
|
|
|
|
|
database:
|
|
|
|
|
ports:
|
2025-10-29 08:40:56 -04:00
|
|
|
# Different port to avoid conflicts with local PostgreSQL
|
|
|
|
|
- "5433:5432"
|
2025-10-18 09:14:10 -04:00
|
|
|
|
|
|
|
|
backend:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile.backend
|
|
|
|
|
environment:
|
2025-10-29 08:40:56 -04:00
|
|
|
DATABASE_URL: >-
|
|
|
|
|
postgresql://plex_user:plex_password@database:5432/plex_playlist
|
2025-10-18 09:14:10 -04:00
|
|
|
ENVIRONMENT: development
|
|
|
|
|
RELOAD: "true"
|
|
|
|
|
volumes:
|
|
|
|
|
- ./backend:/app
|
|
|
|
|
- backend_venv:/app/.venv
|
|
|
|
|
ports:
|
2025-10-29 08:40:56 -04:00
|
|
|
# Different port for development
|
|
|
|
|
- "8001:8000"
|
|
|
|
|
command:
|
|
|
|
|
- "uvicorn"
|
|
|
|
|
- "main:app"
|
|
|
|
|
- "--host"
|
|
|
|
|
- "0.0.0.0"
|
|
|
|
|
- "--port"
|
|
|
|
|
- "8000"
|
|
|
|
|
- "--reload"
|
2025-10-18 09:14:10 -04:00
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile.frontend
|
|
|
|
|
target: development
|
|
|
|
|
volumes:
|
|
|
|
|
- ./frontend:/app
|
|
|
|
|
- frontend_node_modules:/app/node_modules
|
|
|
|
|
ports:
|
|
|
|
|
- "5173:5173" # Vite default dev port
|
|
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=development
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
postgres_data:
|
|
|
|
|
backend_venv:
|
|
|
|
|
frontend_node_modules:
|