-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
Copy pathdocker-compose.yml
67 lines (64 loc) · 1.69 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
58
59
60
61
62
63
64
65
66
67
services:
gpt-researcher:
pull_policy: build
image: gptresearcher/gpt-researcher
build: ./
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
TAVILY_API_KEY: ${TAVILY_API_KEY}
LANGCHAIN_API_KEY: ${LANGCHAIN_API_KEY}
LOGGING_LEVEL: INFO
volumes:
- ${PWD}/outputs:/usr/src/app/outputs:rw
- ${PWD}/logs:/usr/src/app/logs:rw
user: root
restart: always
ports:
- 8000:8000
gptr-nextjs:
pull_policy: build
image: gptresearcher/gptr-nextjs
stdin_open: true
environment:
CHOKIDAR_USEPOLLING: true
LOGGING_LEVEL: INFO
NEXT_PUBLIC_GA_MEASUREMENT_ID: ${NEXT_PUBLIC_GA_MEASUREMENT_ID}
build:
dockerfile: Dockerfile.dev
context: frontend/nextjs
volumes:
- /app/node_modules
- ./frontend/nextjs:/app
- ./outputs:/app/outputs
restart: always
ports:
- 3000:3000
gpt-researcher-tests:
image: gptresearcher/gpt-researcher-tests
build: ./
environment:
OPENAI_API_KEY: ${OPENAI_API_KEY}
TAVILY_API_KEY: ${TAVILY_API_KEY}
LANGCHAIN_API_KEY: ${LANGCHAIN_API_KEY}
LOGGING_LEVEL: INFO
profiles: ["test"]
command: >
/bin/sh -c "
pip install pytest pytest-asyncio faiss-cpu &&
python -m pytest tests/report-types.py &&
python -m pytest tests/vector-store.py
"
discord-bot:
build:
context: ./docs/discord-bot
dockerfile: Dockerfile.dev
environment:
- DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}
- DISCORD_CLIENT_ID=${DISCORD_CLIENT_ID}
volumes:
- ./docs/discord-bot:/app
- /app/node_modules
ports:
- 3001:3000
profiles: ["discord"]
restart: always