mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
version: "2"
|
|
|
|
services:
|
|
client:
|
|
image: react-client
|
|
build: ./client
|
|
restart: always
|
|
ports:
|
|
- "3080:80"
|
|
volumes:
|
|
- ./client:/client
|
|
- /client/node_modules
|
|
links:
|
|
- api
|
|
networks:
|
|
- webappnetwork
|
|
api:
|
|
image: node-api
|
|
build: ./api
|
|
restart: always
|
|
env_file:
|
|
- ./api/.env
|
|
environment:
|
|
- HOST=0.0.0.0
|
|
- NODE_ENV=production
|
|
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
|
|
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
|