Using Docker compose you can define a set of containers, along with their relationships, in a YAML file. And then use the docker-compose CLI to launch and manage them.
For this example there's a compose file using the version 2 schema. This means you will need at least Docker Engine 1.10 and Compose 1.6.
Here's the docker-compose.yml for the your scenario:
# - PUPPETDB_SERVER_URLS=https://puppetdb.local:8081
# - puppetdb:puppetdb.local