LibreChat/docker-compose.yml

48 lines
1.1 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-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