fixed things

This commit is contained in:
2025-08-02 16:20:23 -04:00
parent 3f2f14ac66
commit c9f25ea149
17 changed files with 231 additions and 20 deletions

65
docker/docker-compose.yml Normal file
View File

@@ -0,0 +1,65 @@
version: '3.8'
services:
postgres:
image: pgvector/pgvector:pg16
container_name: jobforge_postgres
environment:
POSTGRES_DB: jobforge_mvp
POSTGRES_USER: jobforge_user
POSTGRES_PASSWORD: jobforge_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ../database/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U jobforge_user -d jobforge_mvp"]
interval: 30s
timeout: 10s
retries: 3
backend:
build:
context: ..
dockerfile: docker/Dockerfile.backend
container_name: jobforge_backend
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql+asyncpg://jobforge_user:jobforge_password@postgres:5432/jobforge_mvp
- CLAUDE_API_KEY=${CLAUDE_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- JWT_SECRET_KEY=${JWT_SECRET_KEY}
- DEBUG=true
- LOG_LEVEL=INFO
volumes:
- ../src:/app/src
depends_on:
postgres:
condition: service_healthy
command: uvicorn src.backend.main:app --host 0.0.0.0 --port 8000 --reload
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ..
dockerfile: docker/Dockerfile.frontend
container_name: jobforge_frontend
ports:
- "8501:8501"
environment:
- BACKEND_URL=http://backend:8000
volumes:
- ../src/frontend:/app/src/frontend
depends_on:
backend:
condition: service_healthy
command: python src/frontend/main.py
volumes:
postgres_data: