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

added script to allow healthcheck call in docker-compose #394

Merged
merged 3 commits into from
Jan 16, 2023

Conversation

jonathan-chin
Copy link
Contributor

when launching a new container, it was always difficult to tell when the container had finished downloading all the language models. I created a simple python script to make a REST call and try to translate English to English (assuming that the user, at the very least, has the English language model installed).

calling this allows us to now check if the server is healthy / unhealthy. I've also updated docker-compose.yml and README.md with an example of how to use it.

@pierotofy
Copy link
Member

Hey @jonathan-chin 👋 thanks !

@pierotofy pierotofy merged commit ec87536 into LibreTranslate:main Jan 16, 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