-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (56 loc) · 1.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (56 loc) · 1.6 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
version: '3.8'
services:
# CPU version - good for testing and moderate usage
katago-server-cpu:
image: ghcr.io/stubbi/katago-server:latest
# Or build locally:
# build:
# context: .
# target: cpu
ports:
- "2718:2718"
# Uncomment to mount custom config:
# volumes:
# - ./config.toml:/app/config.toml:ro
# - ./gtp_config.cfg:/app/gtp_config.cfg:ro
environment:
- RUST_LOG=info
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2718/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# GPU version - requires nvidia-docker
# Uncomment to use GPU-accelerated version
# katago-server-gpu:
# image: ghcr.io/stubbi/katago-server:gpu
# # Or build locally:
# # build:
# # context: .
# # target: gpu
# ports:
# - "2719:2718"
# runtime: nvidia
# environment:
# - RUST_LOG=info
# - NVIDIA_VISIBLE_DEVICES=all
# restart: unless-stopped
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2718/api/v1/health"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 10s
# Minimal version with custom model
# Uncomment and configure to use your own models
# katago-server-custom:
# image: ghcr.io/stubbi/katago-server:latest-minimal
# ports:
# - "2720:2718"
# volumes:
# - /path/to/your/models:/models:ro
# environment:
# - RUST_LOG=info
# restart: unless-stopped