Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.79 KB

README.md

File metadata and controls

45 lines (29 loc) · 1.79 KB

pcdm.org

This is a static site with browseable versions of the ontologies in https://github.com/duraspace/pcdm/.

Nginx Docker Container for Serving XML Files

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.

Table of Contents

Introduction

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.

Prerequisites

  • 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).

Installation

  1. Clone this repository (or copy the necessary files) to your local machine.
  2. Place your XML files in a directory named _site in the same directory as the Dockerfile.
  3. Ensure you have a default.conf file with your Nginx configuration in the same directory. A sample configuration is provided below.

Usage

  1. Build the Docker image:

    docker build -t pcdmsite .