LibreChat/docker-compose.yml

54 lines
1.4 KiB
YAML
Raw Normal View History

2023-03-06 12:49:22 -05:00
version: "2"
services:
client:
2023-03-06 15:56:25 -05:00
image: react-client
2023-03-06 12:49:22 -05:00
restart: always
ports:
- "3080:80"
2023-03-06 12:49:22 -05:00
volumes:
- ./client:/client
- /client/node_modules
links:
- api
networks:
- webappnetwork
api:
image: node-api
restart: always
2023-03-06 14:04:06 -05:00
environment:
- PORT=3080
2023-03-07 14:23:56 -05:00
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
2023-03-06 14:30:58 -05:00
- OPENAI_KEY=""
2023-03-06 14:04:06 -05:00
- CHATGPT_TOKEN=""
- BING_TOKEN=""
2023-03-10 08:37:15 -05:00
# if setting the user token doesn't work, try setting the entire cookie string from bing request header
- BING_COOKIES=""
# Change this to proxy any request.
- PROXY=""
# Change this if you need to configure host name, default: 'localhost'
- HOST=""
2023-03-06 12:49:22 -05:00
ports:
- "9000:3080"
2023-03-06 12:49:22 -05:00
volumes:
- ./api:/api
- /api/node_modules
depends_on:
- mongodb
networks:
- webappnetwork
mongodb:
image: mongo
restart: always
container_name: mongodb
volumes:
- ./data-node:/data/db
ports:
2023-03-06 14:04:06 -05:00
- 27020:27017
2023-03-06 12:49:22 -05:00
command: mongod --noauth
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge