diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-09-19 04:44:15 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2022-09-19 05:01:16 +0300 |
commit | a4d45358a2d0b2d66a5927f475f9c1910a5bf19f (patch) | |
tree | c31a7a5fe89abc0957b02ffed3cd17eda7606c23 | |
parent | 84df8eed33f34359056575275fddff9a88b3b3fe (diff) |
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.
-rw-r--r-- | docker/develop/docker-compose.yml | 1 |
1 files changed, 1 insertions, 0 deletions
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 |