Skip to content

Commit 8fc2c75

Browse files
committed
Add depends_on
1 parent 9c86076 commit 8fc2c75

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed

samples/angular-express/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ services:
1111
resources:
1212
reservations:
1313
memory: 64M
14+
depends_on:
15+
- backend
1416

1517
backend:
1618
build:

samples/mcp/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ services:
1515
- MCP_SERVICE_URL=http://service-2:8000
1616
healthcheck:
1717
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
18+
depends_on:
19+
- service-2
1820

1921
service-2: # MCP Service (MCP Client and Server)
2022
build:

samples/nounly/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ services:
1818
REDIS: redis:6379
1919
PROJECT_HONEYPOT_KEY:
2020
SHARED_SECRETS: "{}"
21+
depends_on:
22+
- redis
2123

2224
redis:
2325
restart: always

samples/ollama/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ services:
5050
# Make sure the LOAD_MODEL is the same as the app service
5151
- LOAD_MODEL=llama3.2:1b
5252
# - LOAD_MODEL=gemma:7b
53+
depends_on:
54+
- ollama

samples/rails/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
interval: 10s
2424
timeout: 5s
2525
retries: 5
26+
depends_on:
27+
- db
2628
db:
2729
restart: unless-stopped
2830
image: postgres:16

samples/vllm/compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ services:
1919
interval: 1m
2020
environment:
2121
- HF_TOKEN
22+
2223
ui:
2324
restart: unless-stopped
2425
build:
@@ -39,3 +40,5 @@ services:
3940
retries: 10
4041
environment:
4142
- OPENAI_BASE_URL=http://mistral:8000/v1/
43+
depends_on:
44+
- mistral

0 commit comments

Comments
 (0)