DOCKER-README.md 1.2 KB

Running the Bahá'í Date API with Docker

This document provides instructions on how to build and run the Bahá'í Date API using Docker and Docker Compose.

Prerequisites

  • Docker must be installed on your system.
  • Docker Compose must be installed on your system (for the Docker Compose instructions).

Using Docker

Building the Image

To build the Docker image, navigate to the root directory of the project and run the following command:

docker build -t bahai-date-api .

Running the Container

Once the image is built, you can run it as a container with the following command:

docker run -p 1844:1844 bahai-date-api

This will start the Bahá'í Date API, and it will be accessible on http://localhost:1844.

Using Docker Compose

Building and Running the Container

To build and run the container with Docker Compose, navigate to the root directory of the project and run the following command:

docker-compose up -d

This will build the image (if it's not already built) and start the container in the background. The API will be accessible at http://localhost:1844.

Stopping the Container

To stop the container, run the following command:

docker-compose down