From 68f59b414f833333614aab060ceaf16a9095ddc3 Mon Sep 17 00:00:00 2001 From: Francesco Menghi <53121061+menghif@users.noreply.github.com> Date: Thu, 31 Mar 2022 16:05:38 -0400 Subject: [PATCH] Setup /docs in Nginx --- config/nginx.conf.development.template | 9 ++++----- docker/development.yml | 1 - src/web/Dockerfile | 6 +----- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/config/nginx.conf.development.template b/config/nginx.conf.development.template index 6ad5759956..aa4c936fc9 100644 --- a/config/nginx.conf.development.template +++ b/config/nginx.conf.development.template @@ -151,6 +151,10 @@ http { proxy_pass http://planet:9876; } + location /docs { + root /usr/share/nginx/html; + } + # Static next.js front-end location / { # Directory from which we serve Next's static content @@ -179,9 +183,4 @@ http { } } } - server { - listen 4631 default_server; - server_name localhost; - root /usr/share/nginx/html; - } } diff --git a/docker/development.yml b/docker/development.yml index 3622cc4f47..5fa3b567f3 100644 --- a/docker/development.yml +++ b/docker/development.yml @@ -33,7 +33,6 @@ services: - ../config/nginx.conf.development.template:/etc/nginx/nginx.conf ports: - '8000:8000' - - '4631:4631' traefik: command: diff --git a/src/web/Dockerfile b/src/web/Dockerfile index 59f055d356..31b38b5d7e 100644 --- a/src/web/Dockerfile +++ b/src/web/Dockerfile @@ -81,9 +81,5 @@ WORKDIR / COPY --from=dependencies /app/out /var/www/data -COPY --from=dependencies /docusaurus/build /usr/share/nginx/html/ - -# Add Healthcheck -HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ - CMD curl --fail localhost:4631 || exit 1 +COPY --from=dependencies /docusaurus/build /usr/share/nginx/html