- Replace fragile /admin/ai-playground and /admin/ai-generation routes
with item-scoped /admin/questions/{id}/generate endpoints
- Add /admin/tryouts/{id}/questions route using Tryout primary key
instead of composite query params (?tryout_id=X&website_id=Y)
- Fix variant detail and review-bulk endpoints to use scoped paths
- Update all internal links (dashboard, hierarchy, exams) to new routes
- Remove obsolete ai_playground_view/submit/save functions
38 lines
782 B
YAML
38 lines
782 B
YAML
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_USER: irt_user
|
|
POSTGRES_PASSWORD: dev_password
|
|
POSTGRES_DB: irt_bank_soal
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
user: "70:70" # postgres user
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
app:
|
|
build: .
|
|
ports:
|
|
- "8080:8000"
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://irt_user:dev_password@postgres:5432/irt_bank_soal
|
|
REDIS_URL: redis://redis:6379
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
volumes:
|
|
- .:/app
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|