-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 985 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 985 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
35
services:
chatmock:
image: ${CHATMOCK_IMAGE:-storagetime/chatmock:latest}
container_name: chatmock
command: ["serve"]
env_file: .env
environment:
- CHATGPT_LOCAL_HOME=/data
- PORT=${PORT:-8000}
ports:
- "127.0.0.1:${PORT:-8000}:${PORT:-8000}"
volumes:
- chatmock_data:/data
- ./prompt.md:/app/prompt.md:ro
healthcheck:
test: ["CMD-SHELL", "python -c \"import os,urllib.request,sys; port=os.getenv('PORT', '8000'); sys.exit(0 if urllib.request.urlopen(f'http://127.0.0.1:{port}/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=127.0.0.1
volumes:
- chatmock_data:/data
ports:
- "127.0.0.1:1455:1455"
volumes:
chatmock_data: