From 014d22f47edb5f159adc4b3fc78a366cb0d38d1e Mon Sep 17 00:00:00 2001 From: Jonathan Math Date: Sun, 21 Feb 2021 11:59:21 -0500 Subject: [PATCH] change docker-compose so that port 8000 is only exposed between containers. Also fix nginx volume so that it uses the correct nginx.conf file --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0277b6270..06d60b7dd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,8 +26,8 @@ services: nofile: soft: 10000 hard: 10000 - ports: - - '8000:8000' + expose: + - '8000' # only use gunicorn if the TEST env variable is not "True" command: bash -c 'if [[ -z "${TEST}" && "${TEST}" = "True" ]] ; then echo "starting test env"; else gunicorn --bind :8000 newsblur_web.wsgi:application; fi' volumes: @@ -50,7 +50,7 @@ services: environment: - DOCKERBUILD=True volumes: - - ./docker/nginx:/etc/nginx/conf.d + - ./docker/nginx/nginx.local.conf:/etc/nginx/conf.d/nginx.conf - app-files:/srv/newsblur postgres: