-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (57 loc) · 1.75 KB
/
docker-compose.yml
File metadata and controls
60 lines (57 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: interview-db
environment:
POSTGRES_DB: ${DB_NAME:-interview_simulator}
POSTGRES_USER: ${DB_USERNAME:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-secret}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- interview-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-postgres} -d ${DB_NAME:-interview_simulator}"]
interval: 10s
timeout: 5s
retries: 5
# Spring Boot Application
app:
build:
context: .
dockerfile: Dockerfile
container_name: interview-app
ports:
- "8080:8080"
environment:
# Application mode: PROD requires users to provide their own API key
# REVIEWER uses multi-key rotation for competition judges
APP_MODE: ${APP_MODE:-PROD}
# Database connection
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: ${DB_NAME:-interview_simulator}
DB_USERNAME: ${DB_USERNAME:-postgres}
DB_PASSWORD: ${DB_PASSWORD:-secret}
# Optional: Only needed in DEV mode
GEMINI_API_KEY: ${GEMINI_API_KEY:-}
# REVIEWER mode: comma-separated API keys
GEMINI_REVIEWER_KEYS: ${GEMINI_REVIEWER_KEYS:-}
# Grading model fallback chain (PROD + REVIEWER)
GEMINI_GRADING_MODELS: ${GEMINI_GRADING_MODELS:-gemini-3-flash-preview,gemini-2.5-flash,gemini-2.5-flash-lite,gemma-3-12b-it}
# JVM options
JAVA_OPTS: ${JAVA_OPTS:-"-Xmx512m -Xms256m"}
depends_on:
postgres:
condition: service_healthy
networks:
- interview-network
restart: unless-stopped
networks:
interview-network:
driver: bridge
volumes:
postgres_data: