This is a static site with browseable versions of the ontologies in https://github.com/duraspace/pcdm/.
This project provides a Dockerized Nginx server configured to serve XML files from a specified directory. It uses a custom Nginx configuration to handle requests efficiently and prevent redirection loops. The server name is configurable via an environment variable, making it easy to switch between different domains.
- Introduction
- Prerequisites
- Installation
- Usage
- Configuration
- Docker Compose
- File Structure
- Troubleshooting
- Contributing
- License
This repository contains the necessary files to build and run a Docker container with Nginx serving XML files. The project is designed to be flexible and easy to use, with a configurable server name and a custom Nginx configuration optimized for serving static content.
- Docker Engine and Docker Compose installed. See the official Docker documentation for installation instructions: https://docs.docker.com/
- A directory containing your XML files (e.g.,
_site
). - A custom Nginx configuration file (e.g.,
default.conf
).
- Clone this repository (or copy the necessary files) to your local machine.
- Place your XML files in a directory named
_site
in the same directory as theDockerfile
. - Ensure you have a
default.conf
file with your Nginx configuration in the same directory. A sample configuration is provided below.
-
Build the Docker image:
docker build -t pcdmsite .