Skip to content

Commit

Permalink
Change localhost to hostname in docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Apr 26, 2024
1 parent 0aa014b commit b171f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
"CMD",
"node",
"-e",
"require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
"require('http').get('http://' + process.env.HOSTNAME + ':3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"
]
timeout: 5s
interval: 5s
Expand Down

0 comments on commit b171f1b

Please sign in to comment.