-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (90 loc) · 2.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
94 lines (90 loc) · 2.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
services:
sre-bot-web:
build:
context: .
dockerfile: agents/sre_agent/Dockerfile-agent
image: sre-bot:latest
container_name: sre-bot
restart: unless-stopped
ports:
- "8000:8000" # Expose the web interface
environment:
# Static configuration - unchanging values for local dev
- PYTHONPATH=/app
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=srebot
- DB_USER=postgres
- ADK_UI_ENABLED=true
- PORT=8000
env_file:
- agents/.env # Secrets and user-specific configs
volumes:
- ${HOME}/.aws:/root/.aws:ro # Mount aws credentials to access AWS Bedrock
- ./agents:/app/ # Mount agents directory including sub_agents modular structure
command: ["adk", "web", "--session_service_uri=postgresql://postgres:postgres@postgres:5432/srebot","--host=0.0.0.0"]
depends_on:
- postgres
sre-bot-api:
build:
context: .
dockerfile: agents/sre_agent/Dockerfile-agent
image: sre-bot:latest
container_name: sre-bot-api
restart: unless-stopped
ports:
- "8001:8000" # Expose the API
environment:
# Static configuration - unchanging values for local dev
- PYTHONPATH=/app
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=srebot
- DB_USER=postgres
- ADK_UI_ENABLED=false
- PORT=8000
env_file:
- agents/.env # Secrets and user-specific configs
volumes:
- ${HOME}/.aws:/root/.aws:ro # Mount aws credentials to access AWS Bedrock
- ./agents:/app/ # Mount agents directory including sub_agents modular structure
command: ["python", "/app/sre_agent/serve.py"]
depends_on:
- postgres
slack-bot:
build:
context: ./slack_bot
dockerfile: Dockerfile
image: slack-bot:latest
container_name: slack-bot
restart: unless-stopped
ports:
- "8002:8002"
environment:
# Static configuration - unchanging values for local dev
- PYTHONPATH=/app
- PYTHONDONTWRITEBYTECODE=1 # Prevents Python from writing .pyc files
- PYTHONUNBUFFERED=1 # Prevents Python from buffering stdout and stderr
- SRE_AGENT_API_URL=http://sre-bot-api:8000
- PORT=8002
env_file:
- slack_bot/.env # Secrets and user-specific configs
volumes:
- ./slack_bot:/app:delegated # Mount local code for development
command: ["uvicorn", "main:fast_api", "--host", "0.0.0.0", "--port", "8002", "--reload"] # Enable auto-reload
depends_on:
- sre-bot-api
postgres:
image: postgres:17
restart: unless-stopped
ports:
- "5432:5432"
environment:
# Static configuration - unchanging values for local dev
- POSTGRES_USER=postgres
- POSTGRES_DB=srebot
- POSTGRES_PASSWORD=postgres # Default password for local dev
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: