-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.75 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (55 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
# ─── HireMinds AI — Docker Compose ───────────────────────────────────────────
# Run the full stack: frontend + backend
#
# Usage:
# docker compose up --build # Build and start all services
# docker compose up -d # Start in background
# docker compose logs -f backend # Follow backend logs
# docker compose down # Stop all services
# ─────────────────────────────────────────────────────────────────────────────
services:
# ─── Backend (Flask API) ───
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: hireminds-backend
restart: unless-stopped
ports:
- "8000:8000"
env_file:
- ./backend/.env
environment:
- PYTHONUNBUFFERED=1
volumes:
- resume-data:/app/data/resumes
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
- hireminds
# ─── Frontend (React + Nginx) ───
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_CLERK_PUBLISHABLE_KEY: ${VITE_CLERK_PUBLISHABLE_KEY}
container_name: hireminds-frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
networks:
- hireminds
volumes:
resume-data:
driver: local
networks:
hireminds:
driver: bridge