-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (59 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (59 loc) · 1.43 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
services:
agents:
build:
context: .
dockerfile: docker/dockerfile.agents
ports:
- "${AGENTS_PORT:-8000}:8000"
depends_on:
temporal:
condition: service_healthy
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- AGENTS_PORT=${AGENTS_PORT:-8000}
- API_PORT=${API_PORT:-3000}
api:
build:
context: .
dockerfile: docker/dockerfile.api
ports:
- "${API_PORT:-3000}:3000"
depends_on:
temporal:
condition: service_healthy
volumes:
- shared-db:/app
environment:
- TEMPORAL_ADDRESS=${TEMPORAL_ADDRESS:-temporal:7233}
- API_PORT=${API_PORT:-3000}
- OPENAI_API_KEY=${OPENAI_API_KEY}
worker:
build:
context: .
dockerfile: docker/dockerfile.worker
depends_on:
temporal:
condition: service_healthy
volumes:
- shared-db:/app
environment:
- TEMPORAL_ADDRESS=${TEMPORAL_ADDRESS:-temporal:7233}
- OPENAI_API_KEY=${OPENAI_API_KEY}
temporal:
image: temporalio/temporal:latest
container_name: temporal
ports:
- "7233:7233"
- "8233:8233"
volumes:
- temporal-data:/home/temporal
command: server start-dev --ip 0.0.0.0
healthcheck:
test: ["CMD", "temporal", "workflow", "list", "--address", "localhost:7233"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
volumes:
temporal-data:
shared-db: