-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
115 lines (109 loc) · 3.01 KB
/
docker-compose.yaml
File metadata and controls
115 lines (109 loc) · 3.01 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
103
104
105
106
107
108
109
110
111
112
113
114
115
services:
tokenhub:
image: tokenhub:latest
ports:
- "8090:8080"
environment:
- TOKENHUB_LISTEN_ADDR=:8080
- TOKENHUB_DB_DSN=/data/tokenhub.sqlite
- TOKENHUB_VAULT_ENABLED=true
- TOKENHUB_VAULT_PASSWORD=${TOKENHUB_VAULT_PASSWORD}
- TOKENHUB_ADMIN_TOKEN=${TOKENHUB_ADMIN_TOKEN}
- TOKENHUB_CORS_ORIGINS=${TOKENHUB_CORS_ORIGINS}
- TOKENHUB_RATE_LIMIT_RPS=${TOKENHUB_RATE_LIMIT_RPS:-60}
- TOKENHUB_RATE_LIMIT_BURST=${TOKENHUB_RATE_LIMIT_BURST:-120}
- TOKENHUB_TEMPORAL_ENABLED=${TOKENHUB_TEMPORAL_ENABLED:-false}
- TOKENHUB_TEMPORAL_HOST=temporal:7233
- TOKENHUB_TEMPORAL_NAMESPACE=${TOKENHUB_TEMPORAL_NAMESPACE:-tokenhub}
- TOKENHUB_TEMPORAL_TASK_QUEUE=${TOKENHUB_TEMPORAL_TASK_QUEUE:-tokenhub-tasks}
volumes:
- tokenhub_data:/data
healthcheck:
test: ["CMD", "/tokenhub", "-healthcheck"]
interval: 5s
timeout: 3s
start_period: 10s
retries: 5
# Temporal is optional; the app handles its absence gracefully.
# Uncomment the depends_on block below if you enable Temporal.
# depends_on:
# temporal:
# condition: service_healthy
dns:
- 1.1.1.1
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
cpus: "2"
postgres:
image: postgres:12
environment:
- POSTGRES_DB=temporal
- POSTGRES_USER=temporal
- POSTGRES_PASSWORD=temporal
volumes:
- temporal_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal"]
interval: 10s
timeout: 5s
retries: 5
temporal:
image: temporalio/auto-setup:latest
ports:
- "7233:7233"
environment:
- DB=postgres12
- DB_PORT=5432
- POSTGRES_USER=temporal
- POSTGRES_PWD=temporal
- POSTGRES_SEEDS=postgres
depends_on:
postgres:
condition: service_healthy
volumes:
- temporal_data:/etc/temporal/data
healthcheck:
test: ["CMD", "tctl", "--address", "temporal:7233", "cluster", "health"]
interval: 15s
timeout: 5s
start_period: 30s
retries: 5
restart: unless-stopped
deploy:
resources:
limits:
memory: 512M
cpus: "1"
temporal-ui:
image: temporalio/ui:latest
ports:
- "8233:8080"
environment:
- TEMPORAL_ADDRESS=temporal:7233
depends_on:
temporal:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
memory: 128M
cpus: "0.5"
# PLACEHOLDER: vLLM service for development only
# This uses nginx as a mock service for local development.
# In production, replace this with an actual vLLM instance running a real language model.
# For example: image: vllm/vllm-openai:latest
vllm-1:
image: nginx:latest
ports:
- "8000:80"
restart: unless-stopped
volumes:
tokenhub_data:
temporal_data:
temporal_db: