Customizing YAML files
Docker Compose uses YAML files to configure a stack’s containers on startup. You can customize our YAML files or use them as the basis for creating your own. For more information, see the Docker Compose File Reference.
To customize our YAML files, you can:
-
Add or change environment variables to use different server profiles.
-
Add references to a file or files containing environment variables to pass to the container on startup.
-
Change the
wait-for
times used to control the startup sequence of containers. -
Change the port mappings for a container.
-
Change the release tag used for the Docker images (all product containers in the stack must use the same release tag). See Using Release Tags for more information.
You will find the YAML files for deploying individual Ping product containers in the ${HOME}/projects/devops/pingidentity-devops-getting-started/11-docker-compose
directory.
YAML file format
This format is used for the YAML files:
version: "3.9" services: <ping-product>: image: pingidentity/<ping-product>:${PING_IDENTITY_DEVOPS_TAG} command: wait-for <another-ping-product>:<startup-port> -t <time-to-wait> -- entrypoint.sh start-server environment: - SERVER_PROFILE_URL=https://github.com/pingidentity/pingidentity-server-profiles.git - SERVER_PROFILE_PATH=baseline/<ping-product> - PING_IDENTITY_ACCEPT_EULA=YES env_file: - ~/.pingidentity/config #volumes: # - ${HOME}/projects/devops/volumes/full-stack.<ping-product>:/opt/out # - ${HOME}/projects/devops/pingidentity-server-profiles/baseline/<ping-product>:/opt/in ports: - <host-port>:<container-port> - <host-port>:<container-port> networks: - pingnet-dmz networks: pingnet-internal: pingnet-dmz:
Entry | Description |
---|---|
|
The Docker Compose file specification version used. |
|
The name of the Ping Identity product container. |
|
The build image of the product used for the container and the build tag to use (defaults to value assigned to |
|
We use the |
|
The environment variables being set. See Customizing Server Profiles for more information. The |
|
A file or files containing environment variable settings. The DevOps environment settings are stored in your |
|
Commented out by default. The location bind mounted to the |
|
The port mappings between the host and the product container. For more information, see the Ports topic in the Docker Compose File Reference. |
|
One or more of the networks listed under the top-level |
top level |
The Docker networks available for assignment to the containers in the stack. Our stacks are built to use an internal Docker network for communications between product containers ( |