-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.2 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
services:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: chesscoach
POSTGRES_USER: chess
POSTGRES_PASSWORD: chess
networks:
- chessnet
volumes:
- chess_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U chess -d chesscoach"]
interval: 10s
timeout: 5s
retries: 5
chess-coach:
build:
context: .
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
user: "${UID:-1000}:${GID:-1000}"
env_file:
- .env
environment:
DATABASE_URL: ${DATABASE_URL:-postgresql://chess:chess@postgres:5432/chesscoach}
CHESS_OUTPUT_DIR: ${CHESS_OUTPUT_DIR:-/data}
OLLAMA_URL: ${OLLAMA_URL:-http://host.docker.internal:11434}
ENABLE_ENGINE: ${ENABLE_ENGINE:-true}
STOCKFISH_PATH: ${STOCKFISH_PATH:-/usr/games/stockfish}
ENGINE_DEPTH: ${ENGINE_DEPTH:-15}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ${HOME}/chess:/data
- ${HOME}/chess/prompts:/app/prompts
networks:
- chessnet
volumes:
chess_postgres_data:
networks:
chessnet:
driver: bridge