Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aren't there secure issues since we expose 6379:6379 #35

Open
FingerLiu opened this issue Aug 26, 2016 · 0 comments
Open

Aren't there secure issues since we expose 6379:6379 #35

FingerLiu opened this issue Aug 26, 2016 · 0 comments

Comments

@FingerLiu
Copy link

https://github.com/realpython/dockerizing-django/blob/master/docker-compose.yml
wrote

redis:
  restart: always
  build: ./redis
  ports:
    - "6379:6379"

I think this may expose 6379 to the whole internet?
Although in production.yml changed to

ports:
  - "6379"

it expose a random port to the whole internet

And from compose file reference https://docs.docker.com/compose/compose-file/#/ports
there is a format

ports:
   - "127.0.0.1:8001:8001"

Would this be safer? Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants