From 3838831bfc914e6ff1770448443416f08cf3d5f4 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Tue, 24 Oct 2023 16:43:47 +0200 Subject: [PATCH] docker-compose should bind ports only on localhost --- dev/docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index 9fd6ad8c..b748c601 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -3,7 +3,7 @@ services: image: postgres:15.2-bullseye container_name: zf_postgresdb ports: - - 5432:5432 + - 127.0.0.1:5432:5432 volumes: - pg_data_zimfarm:/var/lib/postgresql/data - ./postgres-initdb:/docker-entrypoint-initdb.d @@ -21,7 +21,7 @@ services: - ../dispatcher/backend/docs:/app/docs - ../dispatcher/backend/maint-scripts:/app/maint-scripts ports: - - 8000:8000 + - 127.0.0.1:8000:8000 environment: BINDING_HOST: 0.0.0.0 DEBUG: 1 @@ -36,7 +36,7 @@ services: volumes: - ../dispatcher/frontend-ui/src:/app ports: - - 8001:80 + - 127.0.0.1:8001:80 environment: ZIMFARM_WEBAPI: http://localhost:8000/v1 depends_on: @@ -49,7 +49,7 @@ services: volumes: - ../dispatcher/frontend-ui/src:/app/src ports: - - 8002:80 + - 127.0.0.1:8002:80 environment: ZIMFARM_WEBAPI: http://localhost:8000/v1 depends_on: