-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.34 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
# This file is used to run the Eidolon server, a MongoDB database, and the Eidolon UI together in a single command.
# Run `docker-compose up` in the same directory as this file to start the services.
version: '3.8'
services:
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
eidolon-server:
build:
context: ./sdk
dockerfile: Dockerfile
args:
- EIDOLON_VERSION=latest
platform: linux/amd64
environment:
- PYTHONUNBUFFERED=1
- OPENAI_API_KEY=${OPENAI_API_KEY}
- AGENT_DIRECTORY=/app/resources
- MONGO_CONNECTION_STR=mongodb://mongo:27017
- DISABLE_ANONYMOUS_METRICS=true
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- ./examples/eidolon_examples/conversational_chatbot/resources:/app/resources
depends_on:
- mongo
eidolon-ui2:
build:
context: ./webui
dockerfile: Dockerfile
environment:
- NEXTAUTH_URL=http://localhost:3000/api/auth
- AUTH_TRUST_HOST=http://localhost:3000
- NEXTAUTH_SECRET=secret
- EIDOLON_SERVER=http://eidolon-server:8080
- NEXT_PUBLIC_API_URL=http://localhost:3000
- NEXT_PUBLIC_DEBUG=true
- NEXT_PUBLIC_LOG_LEVEL=DEBUG
ports:
- "3000:3000"
depends_on:
- eidolon-server
volumes:
mongo-data: