LibreChat/docker-compose.yml

43 lines
868 B
YAML
Raw Normal View History

version: "3.4"
2023-03-06 12:49:22 -05:00
services:
2023-03-22 22:59:29 +09:00
# client:
2023-03-22 23:20:03 +09:00
# image: nginx-client
2023-03-22 22:59:29 +09:00
# build:
# context: .
# target: nginx-client
# restart: always
# ports:
# - 3080:80
# volumes:
# - /client/node_modules
# depends_on:
# - api
api:
ports:
2023-03-22 22:59:29 +09:00
- 3080:3080 # Change it to 9000:3080 if you want to use nginx
depends_on:
- mongodb
image: node-api
build:
context: .
target: node-api
restart: always
env_file:
- ./api/.env
environment:
- HOST=0.0.0.0
- NODE_ENV=production
- MONGO_URI=mongodb://mongodb:27017/chatgpt-clone
volumes:
2023-03-22 22:59:29 +09:00
- /client/node_modules
- ./api:/api
- /api/node_modules
mongodb:
image: mongo
restart: always
container_name: mongodb
volumes:
- ./data-node:/data/db
command: mongod --noauth