-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.22 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
services:
postgres:
image: postgres:16-alpine
container_name: agent-postgres
environment:
POSTGRES_USER: agent
POSTGRES_PASSWORD: agent
POSTGRES_DB: agent
ports:
- "5433:5432"
volumes:
- agent-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent"]
interval: 5s
timeout: 3s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: agent-backend
environment:
DATABASE_URL: postgresql+asyncpg://agent:agent@postgres:5432/agent
env_file:
- ./backend/.env
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./workspace:/app/workspace
- ./prompts:/app/prompts:ro
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3001/health')"]
interval: 30s
timeout: 5s
start_period: 15s
retries: 3
frontend:
build:
context: ./packages/dashboard-client
dockerfile: Dockerfile
container_name: agent-frontend
ports:
- "3000:80"
depends_on:
- backend
volumes:
agent-pgdata: