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

use network_mode host #1

Merged
merged 1 commit into from
Jan 10, 2022
Merged

use network_mode host #1

merged 1 commit into from
Jan 10, 2022

Conversation

daneryl
Copy link
Contributor

@daneryl daneryl commented Jan 7, 2022

change docker-compose to use network_mode: host, this fixes a couple of issues when used with ufw firewall.

Comment on lines 138 to 144
# port = None
# if os.path.exists("docker-compose.yml"):
# with open("docker-compose.yml", "r") as f:
# docker_yml = yaml.safe_load(f)
# services = list(docker_yml["services"].keys())
# port = docker_yml["services"][services[0]]["ports"][0].split(":")[0]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commented lines are supposed to be kept?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, removed.

@daneryl daneryl merged commit f1e2654 into main Jan 10, 2022
@daneryl daneryl deleted the network_mode_host branch January 10, 2022 17:56
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.

2 participants