Skip to content

Commit

Permalink
docker-compose should bind ports only on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Oct 24, 2023
1 parent 93d9e30 commit 3838831
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 3838831

Please sign in to comment.