Skip to content

Commit 6d96ac7

Browse files
committed
fix: listen on all interfaced in Docker
By default, the `HOSTNAME` environment variable will have the container's hostname. NodeJS `server.listen` when used with a hostname that resolved to multiple addresses will only use the first one. By setting it to 0.0.0.0 we are restoring the default behavior of Next.js and listening on all interfaces.
1 parent bbd94f9 commit 6d96ac7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/supervisord.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ stdout_logfile_backups=5
1414
redirect_stderr=true
1515

1616
[program:borgwarehouse]
17+
environment=HOSTNAME=0.0.0.0
1718
command=/usr/local/bin/node server.js
1819
stdout_logfile=/home/borgwarehouse/tmp/borgwarehouse.log
1920
stdout_logfile_maxbytes=10MB

0 commit comments

Comments
 (0)