-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/document local deployment #3
base: poc
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,77 @@ | |||
version: '3.9' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rib-reply can you please review?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't want to touch the original files, I think it might be the best to separate these changes into a new file, so you can hold off the review until next week
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed that is one of the problems. I must repeat, I can not verify this for Docker For Desktop/docker-compose on MacOS (since I am forced to use windows, because of my project). Your docker would publish your port on all network interfaces as 0.0.0.0 - if you did not configure the standard IP address in your settings as 127.0.0.1 (loopback adapter) In case this docker-compose file is only relevant for local development (and each service is so). To prevent this you can either set the port mapping from container to host like:
- port: 127.0.0.1:80:80
Or setup your docker daemon to use this by standard. To do this on your mac using Docker For Desktop:
go to Docker For Desktop -> preferences > daemon > advanced in the toolbar and add the key / value to the json overlay:
{
"ip" : "127.0.0.1",
...
}
Verify this by using another machine and use
nmap -Pn {ip of the host}
or provide the port number in case you are using high ports
Care that we rely on our developers to setup their docker for desktop daemon correctly. Personally I would definitely not count on that, if I would be accountable.
cheers, Igor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes for the problem in the README
docker run -p 8080:8080 urlaubsverwaltung/urlaubsverwaltung:${version}
would publish the containers port 8080 on the hosts port 8080 for all network interfaces (by default docker settings)
No description provided.