33 lines
728 B
YAML
33 lines
728 B
YAML
services:
|
|
db:
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
volumes:
|
|
- ./backend:/app
|
|
- uploads:/uploads
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://homehub:homehub@db:5432/homehub
|
|
UPLOAD_DIR: /uploads
|
|
CORS_ORIGINS: http://localhost:3000
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
ports:
|
|
- "8000:8000"
|
|
|
|
frontend:
|
|
image: node:20-alpine
|
|
working_dir: /app
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
environment:
|
|
VITE_API_URL: http://localhost:8000
|
|
command: sh -c "npm install && npm run dev -- --host 0.0.0.0"
|
|
ports:
|
|
- "3000:5173"
|
|
depends_on:
|
|
- backend
|