LibreChat/docker-compose.yml

51 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-13 22:45:02 +09:00
build: ./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
2023-03-13 22:45:02 +09:00
build: ./api
2023-03-06 12:49:22 -05:00
restart: always
2023-03-13 22:45:02 +09:00
env_file:
- ./api/.env
2023-03-06 14:04:06 -05:00
environment:
2023-03-13 22:45:02 +09:00
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
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:
2023-03-13 22:45:02 +09:00
driver: bridge