-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (53 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
55 lines (53 loc) · 1.64 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
# =============================================================================
# CheckAI — Docker Compose
# =============================================================================
# Usage:
# docker compose up -d # Start the server
# docker compose logs -f # Follow logs
# docker compose down # Stop and remove container
#
# With opening book + tablebase:
# Place your Polyglot book in ./books/book.bin
# Place Syzygy files in ./tablebase/
# Uncomment the --book-path and --tablebase-path args below
# =============================================================================
services:
checkai:
build:
context: .
dockerfile: Dockerfile
container_name: checkai
ports:
- "${CHECKAI_PORT:-8080}:8080"
volumes:
# Persist game data across container restarts
- checkai-data:/home/checkai/data
# Mount local books and tablebase directories (read-only)
- ./books:/home/checkai/books:ro
- ./tablebase:/home/checkai/tablebase:ro
environment:
- RUST_LOG=${RUST_LOG:-info}
command:
- serve
- --host
- "0.0.0.0"
- --port
- "8080"
- --data-dir
- data
# Uncomment the following lines if you have an opening book:
# - --book-path
# - books/book.bin
# Uncomment the following lines if you have Syzygy tablebases:
# - --tablebase-path
# - tablebase
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/games"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
volumes:
checkai-data:
driver: local