Use cases
This section provides some use cases when working with Docker Airlock IAM images.
Quick start with docker-compose.yml
The Running IAM with Docker describes how to get Airlock IAM up and running with Docker when using the Docker CLI. However, the same goal can be achieved with the docker-compose.yml file.
See the example below. It corresponds with step 6 in the installation instructions.
Docker stack
Docker Compose files can also be used in swarm cluster environments.
The following example uses Docker volumes, profiles, secrets and limit the resources to deploy Adminapp and Loginapp as separate containers.
The option -XX:MaxRAMPercentage relates the container memory available to the JVM for the heap to the total amount of container memory.
Do not to set the value of -XX:MaxRAMPercentage too high
If the JVM and additional processes running in the container (e.g., docker exec) exceed the container's memory limit, the container may be killed.
This template can be used with “docker stack”:
docker-compose.yml
Custom images
Custom Docker images can be created based on the official Airlock IAM image. See https://docs.docker.com/engine/reference/builder/.
Docker file