Open
Conversation
Add Dockerfile, docker-compose.yml, .dockerignore, and DOCKER_README.md to enable running the proxy and dashboard in a container. Uses gunicorn as the WSGI server with the dashboard served on port 8080 by default (avoids macOS AirPlay Receiver conflict on port 5000). Tested on Docker Desktop for macOS with new firmware authentication. Signed-off-by: Patrick Little <222995+pksublime@users.noreply.github.com>
The dl_cgi API on PVS gateways can take 10-15 seconds to respond, especially under load or when accessed through network layers like Docker or reverse proxies. The previous 8-second timeout caused intermittent HTTP 500 errors with "Read timed out" messages. Signed-off-by: Patrick Little <222995+pksublime@users.noreply.github.com>
Owner
|
Thanks for the PR. The project runs the web monitor using venv. I have it installed on the same system with several other unrelated apps running in docker containers. So venv and docker can co-exist on the same system. It is unexpected you had to modify the project to run in a docker container. Perhaps a quirk of your Linux distro? I have to think about your PR. I prefer a basic venv solution. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I didn't want to run separate hardware for the proxy and dashboard, so I set it up to run inside Docker.
This PR adds the necessary files and some basic documentation covering the addition.
During testing I ran into timeout issues and tried 30s instead of 8s and that resolved my issues.