Skip to content

mvinent/sitmun-application-stack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SITMUN Application Stack

The SITMUN Application Stack is an example of how to deploy SITMUN as a multi-container application. It is designed to work in development and testing environments.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a Windows/Linux/Mac machine.
  • You have installed the latest version of Docker CE and Docker Compose, or Docker Desktop. Docker CE is fully open-source, while Docker Desktop is a commercial product.
  • You have installed Git on your machine.
  • You have a GitHub account to create a personal access token.
  • You have a basic understanding of Docker, Docker Compose, and Git.
  • You have internet access on your machine to pull Docker images and Git repositories.

Installing SITMUN Application Stack

To install the SITMUN Application Stack, follow these steps:

  1. Clone the repository and fetch and checkout nested SITMUN projects:

    git clone --recurse-submodules https://github.com/sitmun/sitmun-application-stack.git
  2. Change to the directory of the repository:

    cd sitmun-application-stack
  3. Create a new file named .env inside the directory. Open the .env file in a text editor and add your GitHub personal access token (GITHUB_TOKEN) in the following format:

    GITHUB_TOKEN=your_personal_access_token
  4. Start the SITMUN Application Stack:

    docker compose up

    This command will build and start all the services defined in the docker-compose.yml file.

  5. Access the SITMUN viewer application at http://localhost:9000/viewer. Use the public access which does not require authentication.

  6. Access the SITMUN administrative application at http://localhost:9000/admin. This requires authentication. The default username is admin and the default password is admin.

  7. If the source code of the SITMUN stack is changed, fetch changes and rebuild the services:

    git pull --recurse-submodules
    docker compose up --build

Configuration

Environment Variables

The SITMUN Application Stack uses environment variables to configure the services. The environment variables are defined in the .env file.

The following environment variables are available:

Docker Compose Configuration

The SITMUN Application Stack uses Docker Compose to define the services. The services are defined in the docker-compose.yml file.

The following services are available:

  • viewer: SITMUN viewer application
  • admin: SITMUN administrative application
  • backend: SITMUN API
  • proxy: SITMUN proxy

For testing purposes, the use of the proxy is controlled by the sitmun.proxy.force environment variable in backend, which by default is true.

Data is stored in the pgdata volume, which is used by the postgres service.

Uninstalling SITMUN Application Stack

To stop and remove all services, volumes, and networks defined in the docker-compose.yml file, use:

docker compose down -v

Contributing to SITMUN Application Stack

To contribute to SITMUN Application Stack, follow these steps:

  1. Fork this repository on GitHub.
  2. Clone your forked repository to your local machine.
  3. Create a new branch for your changes.
  4. Make your changes and commit them.
  5. Push your changes to your forked repository.
  6. Create the pull request from your branch on GitHub.

Alternatively, see the GitHub documentation on creating a pull request.

License

This project uses the following license: European Union Public Licence V. 1.2.

About

SITMUN Application Stack

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 51.9%
  • HTML 40.8%
  • TypeScript 7.3%