Skip to content

Commit ea54561

Browse files
committed
Document the need to use the hostname env var rather than localhost
Signed-off-by: David Gardner <dagardner@nvidia.com>
1 parent 71d404c commit ea54561

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test_data/docker-compose.services.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ services:
102102
REDIS_PORT: 6379
103103
SALT: ${LANGFUSE_SALT:-mysalt}
104104
healthcheck:
105+
# Using $(hostname) since the service binds to the container id rather than localhost
105106
test: ["CMD-SHELL", "wget -q --spider http://$(hostname):3030/api/health"]
106107
interval: 30s
107108
timeout: 10s
@@ -126,6 +127,7 @@ services:
126127
LANGFUSE_INIT_USER_PASSWORD: ${LANGFUSE_USER_PW:-password123}
127128
NEXTAUTH_SECRET: ${LANGFUSE_NEXTAUTH_SECRET:-mysecret}
128129
healthcheck:
130+
# Using $(hostname) since the service binds to the container id rather than localhost
129131
test: ["CMD-SHELL", "wget -q --spider http://$(hostname):3000/api/public/health"]
130132
interval: 30s
131133
timeout: 10s

0 commit comments

Comments
 (0)