LibreChat/docker-compose.yml

62 lines
1.6 KiB
YAML
Raw Permalink Normal View History

version: "3.4"
2023-03-06 12:49:22 -05:00
services:
2023-03-22 22:59:29 +09:00
# client:
2023-03-22 23:20:03 +09:00
# image: nginx-client
2023-03-22 22:59:29 +09:00
# build:
# context: .
# target: nginx-client
# restart: always
# ports:
# - 3080:80
# volumes:
# - /client/node_modules
# depends_on:
# - api
api:
2023-04-25 10:04:38 +08:00
container_name: chat-clone
ports:
- 3080:3080 # Change it to 9000:3080 to use nginx
depends_on:
- mongodb
image: node-api # Comment this & uncomment below to build from docker hub image
build:
context: .
target: node-api
# image: chatgptclone/app:latest # Uncomment this & comment above to build from docker hub image
restart: always
env_file:
- ./api/.env
environment:
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
# - CHATGPT_REVERSE_PROXY=http://host.docker.internal:8080/api/conversation # if you are hosting your own chatgpt reverse proxy
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
volumes:
2023-03-22 22:59:29 +09:00
- /client/node_modules
- ./api:/api
- /api/node_modules
mongodb:
2023-04-25 10:04:38 +08:00
container_name: chat-mongodb
2023-03-24 18:27:51 -04:00
ports:
- 27018:27017
image: mongo
restart: always
volumes:
- ./data-node:/data/db
command: mongod --noauth
2023-03-22 22:35:25 -04:00
meilisearch:
2023-04-25 10:04:38 +08:00
container_name: chat-meilisearch
2023-03-22 22:35:25 -04:00
image: getmeili/meilisearch:v1.0
ports:
- 7700:7700
env_file:
- ./api/.env
environment:
- MEILI_HOST=http://meilisearch:7700
- MEILI_HTTP_ADDR=meilisearch:7700
2023-03-22 22:35:25 -04:00
volumes:
- ./meili_data:/meili_data