Skip to content

Commit 4c5fd29

Browse files
try hiding llm service in private network
1 parent eb94295 commit 4c5fd29

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

compose.dev.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ services:
5353
service: discord-bot
5454
env_file:
5555
- .env
56+
networks:
57+
private:

compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ services:
4040
depends_on:
4141
- redis
4242
- llm
43+
networks:
44+
- default
45+
- private
4346

4447
redis:
4548
image: redis:alpine
@@ -48,6 +51,8 @@ services:
4851
published: 6379
4952
protocol: tcp
5053
mode: host
54+
networks:
55+
- private
5156

5257
llm:
5358
image: defangio/openai-access-gateway
@@ -61,6 +66,8 @@ services:
6166
- OPENAI_API_KEY=${OPENAI_API_KEY}
6267
healthcheck:
6368
test: ["CMD", "curl", "-f", "http://localhost/health"]
69+
networks:
70+
- private
6471

6572
discord-bot:
6673
restart: unless-stopped
@@ -84,3 +91,5 @@ services:
8491
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
8592
depends_on:
8693
- app
94+
networks:
95+
private:

0 commit comments

Comments
 (0)