Configuring an Authorize gateway instance
Customize the environment and behavior of the gateway instance to suit your business needs.
Use the docker run command or Docker Compose to pass configuration information to your gateway instance as a JSON object. You can configure:
- 
docker run
- 
Docker Compose 
Steps
- 
Stop the gateway instance container. 
- 
Using the SPRING_APPLICATION_JSONenvironment variable, modify thedocker runcommand to include the relevant configuration object.For example, to configure decision logging for the gateway instance, the command should look something like this (line breaks are included for readability and aren’t necessary in your command): docker run --init \ -e PING_IDENTITY_ACCEPT_EULA=yes \ -e gatewayCredential=<your-gateway-credential> \ -e SPRING_APPLICATION_JSON='{"decision-logging":[{"name":"debugLog","details":["decisionTree"],"logged-attributes":["Amount"],"log-format":"%date{yyyy-MM-dd'\''T'\''HH:mm:ss.SSSXXX,UTC} [%logger] %msg%n"}]}' \ -p 8080:8080 pingidentity/pingone-authorize-gateway:1.1.0Learn more about starting a gateway instance. 
- 
Run the command. ResultThe gateway instance container starts and applies the specified configuration. 
Docker Compose simplifies the management of multi-container applications. By defining your services, networks, and volumes in a single YAML file, you can start or stop your entire application stack with simple commands like docker compose up and docker compose down.
Steps
- 
Stop the gateway instance container. 
- 
In your project directory on the host server, create a file named docker-compose.yml.For example: touch docker-compose.yml Learn more in Docker Compose Quickstart in the Docker Compose documentation. 
- 
In the newly created docker-compose.ymlfile, use theenvironment.SPRING_APPLICATION_JSONvariable to pass in the relevant configuration object.For example, to configure decision logging for the gateway instance, the docker-compose.ymlfile should look something like this:services: authorize-gateway: image: pingidentity/pingone-authorize-gateway:1.1.0 init: true environment: PING_IDENTITY_ACCEPT_EULA: "yes" gatewayCredential: <your-gateway-credential> SPRING_APPLICATION_JSON: | { "decision-logging": [ { "name": "debugLog", "details": ["decisionTree"], "logged-attributes": ["Amount"], "log-format": "%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC} [%logger] %msg%n" } ] } ports: - "8080:8080"
- 
From your gateway instance directory, start the application by running docker compose up.ResultThe gateway instance container starts and applies the specified configuration. 
Next steps
Learn more about the Docker Compose CLI in How Compose works in the Docker Compose documentation.