-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
57 lines (53 loc) · 1.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
volumes:
mongodb-data:
external: true
version: '3'
services:
express-app:
build:
context: server
dockerfile: Dockerfile.dev
ports:
- '5001:5001'
environment:
NOD_ENV: ${NOD_ENV}
PORT: ${PORT}
MONGODB_URI: ${MONGODB_URI}
PASSAGE_APP_ID: ${PASSAGE_APP_ID}
PASSAGE_API_KEY: ${PASSAGE_API_KEY}
depends_on:
- mongo
links:
- mongo
mongo:
image: mongo
restart: always
volumes:
- mongodb-data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
client:
image: node:lts-bullseye
command: /bin/bash run.sh
working_dir: /app
volumes:
- ./client:/app
ports:
- "3000:3000"
environment:
HOST_OS: ${OS}
NODE_ENV: development
HOST: "0.0.0.0"
PUBLIC_URL: http://localhost:3000
REACT_APP_API_HOST: ${REACT_APP_API_HOST}
GENERATE_SOURCEMAP: ${GENERATE_SOURCEMAP}
REACT_APP_PASSAGE_APP_ID: ${REACT_APP_PASSAGE_APP_ID}
chatbot:
build:
context: chatgpt
dockerfile: Dockerfile.dev
ports:
- '8000:8000'
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}