diff --git a/keyserver/docker-compose.yml b/keyserver/docker-compose.yml --- a/keyserver/docker-compose.yml +++ b/keyserver/docker-compose.yml @@ -10,6 +10,7 @@ - "3000:3000" environment: - REDIS_URL=redis://cache + - COMM_LISTEN_ADDR=0.0.0.0 - COMM_MYSQL_HOST=${COMM_MYSQL_HOST:-database} - COMM_MYSQL_DATABASE - COMM_MYSQL_USER diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js --- a/keyserver/src/keyserver.js +++ b/keyserver/src/keyserver.js @@ -160,6 +160,9 @@ server.use(squadCalBaseRoutePath, squadCalRouter); } - server.listen(parseInt(process.env.PORT, 10) || 3000, 'localhost'); + server.listen( + parseInt(process.env.PORT, 10) || 3000, + process.env.COMM_LISTEN_ADDR || 'localhost', + ); } })();