LibreChat/docker-compose.yml
Wentao Lyu 16c9589058 fix: use quotes outside of key=value in docker-compose.yml
fix: set HOST=0.0.0.0 by default in api's dockerfile
2023-03-11 16:14:11 +08:00

48 lines
No EOL
1.1 KiB
YAML

version: "2"
services:
client:
image: react-client
restart: always
ports:
- "3080:80"
volumes:
- ./client:/client
- /client/node_modules
links:
- api
networks:
- webappnetwork
api:
image: node-api
restart: always
environment:
- "PORT=3080"
- "MONGO_URI=mongodb://mongodb:27017/chatgpt-clone"
- "OPENAI_KEY="
- "CHATGPT_TOKEN="
- "BING_TOKEN="
ports:
- "9000:3080"
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:
- 27020:27017
command: mongod --noauth
networks:
- webappnetwork
networks:
webappnetwork:
driver: bridge