Mesos-Compose support to store secrets in Hashicorp Vault (short vault). The configuration is so simple as possible.
Therefore mesos-compose can use vault, we have to configure the following parameter.
export VAULT_URL=https://<YOUR_VAULT_IP>:<YOUR_VAULT_PORT> export VAULT_TOKEN=<YOUR_VAULT_TOKEN>
Create a secret in a KV store.
Use the secret in the following term.
version: '3.9' services: test1: image: alpine command: "env" restart: always environment: - test=vault://secret/data/m3s/test:test1 network: default deploy: resources: limits: cpus: "0.1" memory: "50"
Please notice, that the KV V2 store needs "data" inside of the path. Even if it's not visible in the UI.