-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 814 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 814 Bytes
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
services:
backend:
build: ./backend
expose:
- "8000"
volumes:
- chess-data:/app/data
environment:
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- STOCKFISH_PATH=/usr/games/stockfish
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build: ./frontend
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://localhost:80/ || exit 1"]
interval: 15s
timeout: 5s
retries: 3
start_period: 5s
volumes:
chess-data: