- Requirements
- Run the composition - MAGIC WAY
- Run the composition - LONG WAY
- Configure your system
- Insights
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.
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:
- Satosa-saml2spid is published with nginx frontend on https://localhost
- Mongo Espress is published on http://localhost:8081
- Django SAML2 SP is published on https://localhost:8000
- Spid-samlcheck is published on https://localhost:8443
More details ad start option are avable on run-docker-compose.sh page
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
- More details on prodiles read the Docker Compose Profiles page
- More details on run-docker-compose,sh read the run-docker-compose.sh page