diff --git a/docker/Dockerfile b/docker/Dockerfile index e883afd..8787b57 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -42,4 +42,4 @@ RUN if [ "$with_models" = "true" ]; then \ fi EXPOSE 5000 -ENTRYPOINT [ "./venv/bin/libretranslate", "--host", "0.0.0.0" ] +ENTRYPOINT [ "./venv/bin/libretranslate", "--host", "::" ] diff --git a/docker/arm.Dockerfile b/docker/arm.Dockerfile index f60c8ad..934df26 100644 --- a/docker/arm.Dockerfile +++ b/docker/arm.Dockerfile @@ -40,4 +40,4 @@ RUN if [ "$with_models" = "true" ]; then \ fi EXPOSE 5000 -ENTRYPOINT [ "./venv/bin/libretranslate", "--host", "0.0.0.0" ] +ENTRYPOINT [ "./venv/bin/libretranslate", "--host", "::" ] diff --git a/docker/cuda.Dockerfile b/docker/cuda.Dockerfile index 1b29547..3ab10a1 100644 --- a/docker/cuda.Dockerfile +++ b/docker/cuda.Dockerfile @@ -42,4 +42,4 @@ RUN pip3 install Babel==2.12.1 && python3 scripts/compile_locales.py \ # ENV LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/cuda/lib64 EXPOSE 5000 -ENTRYPOINT [ "libretranslate", "--host", "0.0.0.0" ] +ENTRYPOINT [ "libretranslate", "--host", "::" ] diff --git a/scripts/healthcheck.py b/scripts/healthcheck.py index 07bcaa4..aa5fcaf 100644 --- a/scripts/healthcheck.py +++ b/scripts/healthcheck.py @@ -1,7 +1,7 @@ import requests response = requests.post( - url='http://0.0.0.0:5000/translate', + url='http://[::1]:5000/translate', headers={'Content-Type': 'application/json'}, json={ 'q': 'Hello World!',