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.
This commit is contained in:
Benjamin Neff 2022-09-19 03:44:15 +02:00
parent 84df8eed33
commit a4d45358a2
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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