From f71e915197915230cae3df0c4fb6840a583e2c34 Mon Sep 17 00:00:00 2001 From: eecavanna Date: Wed, 4 Sep 2024 00:27:34 -0700 Subject: [PATCH] Add Nginx to development stack to host umbrella website --- content/index.html | 11 +++++++++-- docker-compose.yml | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/content/index.html b/content/index.html index 922bfbe..7cc8109 100644 --- a/content/index.html +++ b/content/index.html @@ -6,9 +6,16 @@ Docs +

Docs

+

This page is a placeholder.

+

Current documentation

+

Legacy documentation

+ \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 3ec9c4d..6ff1571 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,3 +18,16 @@ services: - "50001:8000" volumes: - ./legacy/workflow-documentation:/app + + main-website: + image: nginx # Docs: https://hub.docker.com/_/nginx + depends_on: + - legacy-nmdc-documentation + - legacy-workflow-documentation + restart: unless-stopped + ports: + - "5000:80" + volumes: + - ./content:/usr/share/nginx/html + - ./legacy/nmdc-documentation/_build/html:/usr/share/nginx/html/legacy/nmdc-documentation + - ./legacy/workflow-documentation/_build/html:/usr/share/nginx/html/legacy/workflow-documentation