Skip to content

Commit

Permalink
Making docker ports explicitely localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmasrna1 committed Dec 4, 2024
1 parent beecf40 commit 73477e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compose-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
args:
SETTINGS_MODULE: mas_problem.settings.test_settings
ports:
- "8630:8000"
- "127.0.0.1:8630:8000"
volumes:
- "staticfiles:/app/static:rw"
- type: "bind"
Expand All @@ -25,7 +25,7 @@ services:
depends_on:
- "website"
ports:
- "8631:80"
- "127.0.0.1:8631:80"
volumes:
- "staticfiles:/usr/share/nginx/html:ro"

Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
website:
build: .
ports:
- "8620:8000"
- "127.0.0.1:8620:8000"
volumes:
- "staticfiles:/app/static:rw"
- type: "bind"
Expand All @@ -23,7 +23,7 @@ services:
depends_on:
- "website"
ports:
- "8621:80"
- "127.0.0.1:8621:80"
volumes:
- "staticfiles:/usr/share/nginx/html:ro"
restart: always
Expand Down

0 comments on commit 73477e7

Please sign in to comment.