Skip to content

Example: Secret

Stéphane Brunner edited this page Jul 3, 2024 · 4 revisions

Create a Secret with one value and use it in a container as an environment variable.

secrets:
  content:
    secret1: value1

services:
  deployment1:
    enabled: true
    containers:
      container1:
        image:
          repository: camptocamp/image
          tag: latest
        env:
          env1:
            type: secret
            name: self
            key: secret1
Clone this wiki locally