Skip to content

Commit 4e1df83

Browse files
committed
expose backend host in /etc/hosts
1 parent 420380d commit 4e1df83

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

charts/llamacloud/docker/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ services:
3535
timeout: 2s
3636
retries: 10
3737
start_period: 15s
38+
extra_hosts:
39+
- "backend:127.0.0.1"
3840
depends_on:
3941
- rabbitmq
4042
- postgresql

charts/llamacloud/docker/setup-keycloak.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ if ! grep -qF '127.0.0.1 keycloak' /etc/hosts; then
88
echo '127.0.0.1 keycloak' | sudo tee -a /etc/hosts > /dev/null
99
echo "Adding keycloak to /etc/hosts"
1010
else
11-
echo "Host entry already exists in /etc/hosts"
11+
echo "Keycloak host entry already exists in /etc/hosts"
12+
fi
13+
14+
if ! grep -qF '127.0.0.1 backend' /etc/hosts; then
15+
echo '127.0.0.1 backend' | sudo tee -a /etc/hosts > /dev/null
16+
echo "Adding backend to /etc/hosts"
17+
else
18+
echo "Backend host entry already exists in /etc/hosts"
1219
fi
1320

1421
KEYCLOAK_URL="http://localhost:8093"

0 commit comments

Comments
 (0)