-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
135 lines (132 loc) · 3.75 KB
/
docker-compose.dev.yml
File metadata and controls
135 lines (132 loc) · 3.75 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.9'
networks:
net:
driver: bridge
services:
chroma:
container_name: chroma
image: personoids/chroma
restart: always
environment:
- CHROMA_DB_IMPL=clickhouse
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=8123
build:
context: ./
dockerfile: Dockerfile-chroma
depends_on:
- clickhouse
networks:
- net
plugin:
container_name: plugin
image: personoids/plugin-lite
restart: always
build:
context: ./
dockerfile: Dockerfile
environment:
- SERPAPI_API_KEY=${SERPAPI_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- HUGGINGFACE_TOKEN=${HUGGINGFACE_TOKEN}
- CHROMA_SERVER_URL=http://chroma:8000
- BROWSE_MODE=${BROWSE_MODE}
ports:
- 5004:5004
- 5001:5001
- 5002:5002
- 5003:5003
- 5005:5005
- 3000:3000
- 3001:3001
- 3002:3002
- 8080:8080
- 8081:8081
- 8082:8082
- 8083:8083
volumes:
- ./workspace:/usr/workspace
depends_on:
- chroma
networks:
- net
links:
- chroma
clickhouse:
image: clickhouse/clickhouse-server:22.9-alpine
environment:
- ALLOW_EMPTY_PASSWORD=yes
- CLICKHOUSE_TCP_PORT=9000
- CLICKHOUSE_HTTP_PORT=8123
ports:
- '8123:8123'
- '9000:9000'
volumes:
- clickhouse_data:/var/lib/clickhouse
- clickhouse_logs:/var/log/clickhouse-server
- backups:/backups
- ./config/backup_disk.xml:/etc/clickhouse-server/config.d/backup_disk.xml
- ./config/chroma_users.xml:/etc/clickhouse-server/users.d/chroma.xml
networks:
- net
api:
container_name: LibreChat
ports:
- 3080:3080 # Change it to 9000:3080 to use nginx
depends_on:
- mongodb
- plugin
image: librechat # Comment this & uncomment below to build from docker hub image
build: # ^------
context: ./LibreChat/ # ^------
target: node # ^------v
# image: ghcr.io/danny-avila/librechat:latest # Uncomment this & comment above to build from docker hub image
restart: always
extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
- "host.docker.internal:host-gateway"
env_file:
- LibreChat/.env.default
environment:
- HOST=0.0.0.0
- MONGO_URI=mongodb://mongodb:27017/LibreChat
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy with docker
# - OPENAI_REVERSE_PROXY=http://host.docker.internal:8070/v1/chat/completions # if you are hosting your own chatgpt reverse proxy with docker
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
- OPENAI_API_KEY=${OPENAI_API_KEY}
volumes:
- /app/client/node_modules
- ./LibreChat/api:/app/api
- ./LibreChat/.env.default:/app/.env
- /app/api/node_modules
- ./LibreChat/images:/app/client/public/images
mongodb:
container_name: chat-mongodb
ports:
- 27018:27017
image: mongo
restart: always
volumes:
- ./LibreChat/data-node:/data/db
command: mongod --noauth
meilisearch:
container_name: chat-meilisearch
image: getmeili/meilisearch:v1.0
ports:
- 7700:7700
env_file:
- LibreChat/.env.default
environment:
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
volumes:
- ./LibreChat/meili_data:/meili_data
volumes:
clickhouse_data:
driver: local
clickhouse_logs:
driver: local
index_data:
driver: local
backups:
driver: local