-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.29 KB
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
version: '3.8'
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_API_URL: http://localhost:8000
VITE_AGENT_URL: ws://localhost:8765
# JSON map keyed by agent name so each AgentComponent in the React app
# can connect to its own backing service. Quoted so the YAML parser
# treats it as a literal string, not an inline mapping.
VITE_AGENT_URLS: '{"Library_Agent":"ws://localhost:8765" }'
ports:
- "3000:3000"
depends_on:
- backend
- library_agent_agent
environment:
- VITE_API_URL=http://localhost:8000
- VITE_AGENT_URL=ws://localhost:8765
- 'VITE_AGENT_URLS={"Library_Agent":"ws://localhost:8765" }'
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite:///./data/Library.db
volumes:
- sqlite_data:/app/data
depends_on:
- library_agent_agent
library_agent_agent:
build:
context: ./agents/library_agent
dockerfile: Dockerfile
ports:
- "8765:8765"
- "5000:5000"
volumes:
- library_agent_agent_data:/app/data
environment:
- PYTHONUNBUFFERED=1
volumes:
sqlite_data:
library_agent_agent_data: