-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (95 loc) · 2.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (95 loc) · 2.57 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
95
96
97
98
99
100
101
102
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_USER: datom
POSTGRES_PASSWORD: datom
POSTGRES_DB: datom
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U datom"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
datom-api:
build: ./backend
command: ["uv", "run", "uvicorn", "datom.api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
ports:
- "8000:8000"
env_file: ./backend/.env
environment:
DATOM_DATABASE_URL: postgresql+asyncpg://datom:datom@postgres:5432/datom
DATOM_REDIS_URL: redis://redis:6379/0
volumes:
- ./backend/src:/app/src
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
datom-llm-proxy:
build: ./backend
command: ["uv", "run", "uvicorn", "datom.proxy.main:app", "--host", "0.0.0.0", "--port", "8001", "--reload"]
ports:
- "8001:8001"
env_file: ./backend/.env
environment:
DATOM_DATABASE_URL: postgresql+asyncpg://datom:datom@postgres:5432/datom
DATOM_REDIS_URL: redis://redis:6379/0
volumes:
- ./backend/src:/app/src
depends_on:
redis:
condition: service_healthy
datom-gateway:
build: ./backend
command: ["uv", "run", "uvicorn", "datom.gateway.main:app", "--host", "0.0.0.0", "--port", "8002", "--reload"]
ports:
- "8002:8002"
env_file: ./backend/.env
environment:
DATOM_DATABASE_URL: postgresql+asyncpg://datom:datom@postgres:5432/datom
DATOM_REDIS_URL: redis://redis:6379/0
volumes:
- ./backend/src:/app/src
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
datom-worker:
build: ./backend
command: ["uv", "run", "arq", "datom.worker.main.WorkerSettings"]
env_file: ./backend/.env
environment:
DATOM_DATABASE_URL: postgresql+asyncpg://datom:datom@postgres:5432/datom
DATOM_REDIS_URL: redis://redis:6379/0
volumes:
- ./backend/src:/app/src
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
frontend:
build: ./frontend
ports:
- "3000:3000"
volumes:
- ./frontend/src:/app/src
depends_on:
- datom-api
volumes:
postgres_data: