From a4d45358a2d0b2d66a5927f475f9c1910a5bf19f Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Mon, 19 Sep 2022 03:44:15 +0200 Subject: Set listen not only on localhost when used in docker When puma was introduced in #8392 the default listen configuration was set to only localhost, which makes sense for most development setups, but when run within docker, it needs to listen on all IPs so the port can be forwarded to be accessable outside of docker. Because the new default makes sense without docker, I overwrite the option with a environment variable only in the docker-setup. This also ensures that it always contains the right value needed for the docker-setup to work, no matter what was configured outside of docker. --- docker/develop/docker-compose.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/develop/docker-compose.yml b/docker/develop/docker-compose.yml index 88a031a11..8b41d6ed7 100644 --- a/docker/develop/docker-compose.yml +++ b/docker/develop/docker-compose.yml @@ -24,6 +24,7 @@ services: - ${DIASPORA_DOCKER_PORT:-3000}:3000 environment: - ENVIRONMENT_REDIS=redis://redis + - SERVER_LISTEN=tcp://0.0.0.0:3000 depends_on: - "${DIASPORA_DOCKER_DB}" - redis -- cgit v1.2.3