56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: lomda
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
backend:
|
|
build: ./backend
|
|
environment:
|
|
DATABASE_URL: postgresql+psycopg2://postgres:postgres@db:5432/lomda
|
|
JWT_SECRET_KEY: change_me_access
|
|
JWT_REFRESH_SECRET_KEY: change_me_refresh
|
|
CORS_ORIGINS: http://localhost:5173
|
|
ADMIN_SEED_EMAIL: admin@example.com
|
|
ADMIN_SEED_PASSWORD: admin123
|
|
FRONTEND_URL: http://localhost:5173
|
|
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
|
|
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
|
|
GOOGLE_REDIRECT_URI: http://localhost:8000/auth/google/callback
|
|
SMTP_HOST: ${SMTP_HOST}
|
|
SMTP_PORT: ${SMTP_PORT:-587}
|
|
SMTP_USER: ${SMTP_USER}
|
|
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
|
SMTP_FROM: ${SMTP_FROM}
|
|
UPLOAD_DIR: /data/uploads
|
|
volumes:
|
|
- ./backend:/app
|
|
- upload_data:/data/uploads
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
environment:
|
|
VITE_API_URL: http://localhost:8000
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
ports:
|
|
- "5173:5173"
|
|
depends_on:
|
|
- backend
|
|
command: sh -c "npm install && npm run dev"
|
|
|
|
volumes:
|
|
postgres_data:
|
|
upload_data:
|