Skip to content

Commit

Permalink
Add Nginx to development stack to host umbrella website
Browse files Browse the repository at this point in the history
  • Loading branch information
eecavanna committed Sep 4, 2024
1 parent 0263f11 commit f71e915
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
11 changes: 9 additions & 2 deletions content/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@
<title>Docs</title>
</head>
<body>
<h1>Docs</h1>
<p>This page is a placeholder.</p>
<h2>Current documentation</h2>
<ul>
<li><a href="legacy/nmdc-documentation">legacy/nmdc-documentation</a></li>
<li><a href="legacy/workflow-documentation">legacy/workflow-documentation</a></li>
<li>// TODO</li>
</ul>
<h2>Legacy documentation</h2>
<ul>
<li><a href="legacy/nmdc-documentation/index.html">legacy/nmdc-documentation</a></li>
<li><a href="legacy/workflow-documentation/index.html">legacy/workflow-documentation</a></li>
</ul>
</body>
</html>
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f71e915

Please sign in to comment.