Docker Compose is an amazing tool to create the development environment for your application stack. It allows you to define each component of your application following a clear and simple syntax in YAML files.
Before continue you must be aware that use environment variables to store sensitive data is a bad decision, try to avoid it when possible.
I’d use this approach just when using 3rd party services that make use of…
Note: This is based on a experimental feature, the naming and functionalities could change. In the future Prometheus will probably provide a native way of integrate it with a swarm cluster. Docker will add more metric values in the future.