38 lines
924 B
YAML
38 lines
924 B
YAML
services:
|
|
database:
|
|
ports:
|
|
- "5433:5432" # Different port to avoid conflicts with local PostgreSQL
|
|
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.backend
|
|
environment:
|
|
DATABASE_URL: postgresql://plex_user:plex_password@database:5432/plex_playlist
|
|
ENVIRONMENT: development
|
|
RELOAD: "true"
|
|
volumes:
|
|
- ./backend:/app
|
|
- backend_venv:/app/.venv
|
|
ports:
|
|
- "8001:8000" # Different port for development
|
|
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
|
|
|
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:
|