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

Feat/document local deployment #3

Open
wants to merge 2 commits into
base: poc
Choose a base branch
from

Conversation

mislavperi
Copy link
Collaborator

No description provided.

@mislavperi mislavperi self-assigned this Feb 19, 2024
@mislavperi mislavperi marked this pull request as ready for review February 19, 2024 11:40
@@ -0,0 +1,77 @@
version: '3.9'
Copy link
Member

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?

Copy link
Collaborator Author

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

Copy link
Collaborator

@rib-reply rib-reply Mar 1, 2024

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

Copy link
Collaborator

@rib-reply rib-reply Mar 1, 2024

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)

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

Successfully merging this pull request may close these issues.

3 participants