Skip to content

Commit 33334f6

Browse files
Merge pull request #977 from yasinBursali/fix/healthcheck-ipv4
fix(healthcheck): use 127.0.0.1 instead of localhost/hostname
2 parents da37cd3 + 67a5797 commit 33334f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dream-server/extensions/services/dreamforge/Dockerfile.rust

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ EXPOSE 3010
4343
VOLUME ["/workspace", "/data/dreamforge"]
4444

4545
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
46-
CMD curl -f http://localhost:3010/health || exit 1
46+
CMD curl -f http://127.0.0.1:3010/health || exit 1
4747

4848
ENTRYPOINT ["dreamforge-server"]

dream-server/extensions/services/dreamforge/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ services:
4444
cpus: '0.5'
4545
memory: 256M
4646
healthcheck:
47-
test: ["CMD", "curl", "-f", "http://localhost:3010/health"]
47+
test: ["CMD", "curl", "-f", "http://127.0.0.1:3010/health"]
4848
interval: 30s
4949
timeout: 5s
5050
retries: 3

dream-server/extensions/services/perplexica/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
cpus: '0.25'
2727
memory: 256M
2828
healthcheck:
29-
test: ["CMD", "node", "-e", "const h=require('http');h.get('http://'+require('os').hostname()+':3000/',r=>{process.exit(r.statusCode===200?0:1)}).on('error',()=>process.exit(1))"]
29+
test: ["CMD", "node", "-e", "const h=require('http');h.get('http://127.0.0.1:3000/',r=>{process.exit(r.statusCode===200?0:1)}).on('error',()=>process.exit(1))"]
3030
interval: 30s
3131
timeout: 10s
3232
retries: 3

0 commit comments

Comments
 (0)