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

Add a healthcheck script that works with a dynamic port. #2510

Merged

Conversation

andrew-kennedy
Copy link
Contributor

Description
This PR modifies the docker healthcheck command to run an external script that supports a custom port from the .filebrowser.json config file.

@o1egl
Copy link
Member

o1egl commented Jul 17, 2023

What is the reason for changing the port inside a docker container?

@andrew-kennedy
Copy link
Contributor Author

What is the reason for changing the port inside a docker container?

I have multiple containers within the same network namespace in podman so that they can all resolve each other via DNS, but this means they also share a port namespace and cannot all listen on the same ports. Port mapping to a different host port is orthogonal, and so I just change the ports my container software listens on should they collide instead of assuming port 80. For example, in my use case, port 80 in that namespace is being listened on by a reverse proxy.

@o1egl o1egl merged commit ff4375c into filebrowser:master Jul 22, 2023
7 of 8 checks passed
langren1353 pushed a commit to langren1353/filebrowser-player that referenced this pull request Jul 31, 2023
langren1353 pushed a commit to langren1353/filebrowser-player that referenced this pull request Jul 31, 2023
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.

None yet

2 participants