-
Notifications
You must be signed in to change notification settings - Fork 185
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 880 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (32 loc) · 880 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
services:
chatmock:
image: ${CHATMOCK_IMAGE:-storagetime/chatmock:latest}
container_name: chatmock
command: ["serve"]
env_file: .env
environment:
- CHATGPT_LOCAL_HOME=/data
ports:
- "8000:8000"
volumes:
- chatmock_data:/data
- ./prompt.md:/app/prompt.md:ro
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/health').status==200 else 1)\" "]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
chatmock-login:
image: ${CHATMOCK_IMAGE:-storagetime/chatmock:latest}
profiles: ["login"]
command: ["login"]
environment:
- CHATGPT_LOCAL_HOME=/data
- CHATGPT_LOCAL_LOGIN_BIND=0.0.0.0
volumes:
- chatmock_data:/data
ports:
- "1455:1455"
volumes:
chatmock_data: