-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.22 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
services:
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
volumes:
- ollama:/root/.ollama
networks:
- santisplayground
# API is only used inside the docker network by default.
expose:
- "11434"
gateway:
build:
context: ./gateway
image: santisplayground-ssh:latest
container_name: chatbox
restart: unless-stopped
depends_on:
- ollama
networks:
- santisplayground
# Recommended: bind only to your Tailscale IP (100.x).
# Export TS_IP before `docker compose up`:
# export TS_IP="$(tailscale ip -4)"
ports:
- "${TS_IP:-127.0.0.1}:2222:2222"
environment:
- USER_NAME=${GATEWAY_USER:-friend1}
# Force-command is set inside authorized_keys by PUBLIC_KEY below.
- PUBLIC_KEY=${GATEWAY_PUBLIC_KEY:-}
- PASSWORD_ACCESS=false
- SUDO_ACCESS=false
- OLLAMA_HOST=http://ollama:11434
# UI formatting
- LEFT_PAD=12
- HARD_WRAP=38
# Privacy
- RETENTION_MINUTES=1440
- PRIVACY_SWEEP_SECONDS=3600
volumes:
- gateway-config:/config
networks:
santisplayground:
name: santisplayground
volumes:
ollama:
gateway-config: