Skip to content

Latest commit

 

History

History
91 lines (66 loc) · 2.57 KB

README.md

File metadata and controls

91 lines (66 loc) · 2.57 KB

Docker Compose

Table of Contents

  1. Requirements
  2. Run the composition - MAGIC WAY
  3. Run the composition - LONG WAY
  4. Configure your system
  5. Insights

Requirements

In order to execute the run script you need:

  • docker-compose

Installation example in Ubuntu:

sudo apt install docker-compose

For docker-compose you can also see here.

Run the Composition for Demo Purposes

Enter in Docker-compose directory and run run-docker-compose.sh:

cd Docker-compose
./run-docker-compose.sh

The script creates the directories for local mounts and copies all required files to start a full demo with test and SAML2 Service Providers.

Warning: The script deletes any previous created directory if found.

The result is represented by the following services:

More details ad start option are avable on run-docker-compose.sh page

Run the Composition for Production Use

Enter in Docker-compose directory and make required direcotries for local mounts:

cd Docker-compose
mkdir -p ./mongo/db          # DB Data directory
mkdir -p ./satosa-project    # Satosa-saml2spid data istance
mkdir -p ./djangosaml2_sp    # Service provider directory
mkdir -p ./nginx/html/static # static files for nginx

Copy required files

cp -R ../example/* ./satosa-project
cp -R ../example_sp/djangosaml2_sp/* ./djangosaml2_sp
cp -E ../example/static/* ./nginx/html/static

Clean static data from Satosa project

rm -R ./satosa-project/static

Copy the example env file and edit according to your configuration, therefore all the default passwords MUST be changed.

cp env.example .env

You can still edit all files in detail from their local volumes.

Run the compose for a minimal system (nginx and satosa)

docker compose up

Run the full demo

docker compose --profile demo up

Read the profiles guide for more informations

Insights