forked from mckaywrigley/chatbot-ui
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathdocker-compose.yml
46 lines (36 loc) · 1.18 KB
/
docker-compose.yml
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
services:
# Traefik
http-gateway:
image: traefik:v2.9
command:
# static config
--providers.docker
--providers.file.filename=/traefik/config.yaml
--entrypoints.web.address=:80
--entrypoints.web.http.redirections.entrypoint.to=websecure
--entrypoints.web.http.redirections.entrypoint.scheme=https
--entrypoints.web.http.redirections.entrypoint.permanent=true
--entrypoints.websecure.address=:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik:/traefik:ro
ports:
- 80:80
- 443:443
networks:
- openchat-server
restart: unless-stopped
# OpenChat UI
openchat-ui:
build: .
environment:
- 'OPENAI_API_HOST=http://openchat-server:18888'
- 'OPENAI_API_KEY=openchat-dummy-key'
- 'NEXT_PUBLIC_DEFAULT_TEMPERATURE=0.7'
- 'NEXT_PUBLIC_DEFAULT_SYSTEM_PROMPT="A chat between a curious user and an AI assistant. The AI assistant works step by step to ensure correct and helpful answers are provided to the user, and responds using Markdown."'
networks:
- openchat-server
restart: unless-stopped
networks:
openchat-server:
external: true