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

Running services on localhost(lo) instead on all interfaces #24

Closed
sidheshenator opened this issue May 17, 2017 · 1 comment
Closed

Comments

@sidheshenator
Copy link

Currently, the jackhammer_web, redis, and mysql bind to all IPv6 interfaces.

root@jackhammer-nginx:/home/sidheshenator/jackhammer# sudo netstat -plnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6       0      0 :::5000                 :::*                    LISTEN      26530/docker-proxy
tcp6       0      0 :::3306                 :::*                    LISTEN      26841/docker-proxy
tcp6       0      0 :::32784                :::*                    LISTEN      26317/docker-proxy
tcp6       0      0 :::80                   :::*                    LISTEN      2417/nginx -g daemo

Is it possible to bind it to particular interface only? I wanted it to run on localhost(lo) only instead of making it available to the world :)

@sidheshenator
Copy link
Author

Changing the port directive in docker-compose.yml to include the interface and executing docker-build did the trick. :)
i.e.

...
 web:
   build: ./web
   volumes:
     - '.:/jackhammer'
   ports:
     - "127.0.0.1:5000:3000"
...

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

No branches or pull requests

1 participant