You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add "name" field to secrets and configs to allow interpolation in Compose files #667
In Compose file version 3.4, volumes gained the "name" field which allowed the volumes' names to be interpolated for simple version bumps using environmental variables.
That feature is also needed for secrets and configs. Usage example:
version: "3.5"# future versionsecrets:
my-secret:
name: my-secret-${VERSION} # name of the Docker Secret with variable interpolationfile: ./secret.htmlconfigs:
my-config:
name: my-config-${VERSION} # same thing for configsfile: ./default.confservices:
web:
image: nginx:1.13.5-alpineports:
- "80:80"secrets:
- source: my-secret # reference by the name of the key, consistent with how it is for volumes now in 3.4target: /usr/share/nginx/html/index.htmlconfigs:
- source: my-configtarget: /etc/nginx/conf.d/default.conf
changed the title [-]Add secret.name and config.name to allow interpolation[/-][+]Add "name" field to secrets and configs to allow interpolation[/+]on Nov 6, 2017
changed the title [-]Add "name" field to secrets and configs to allow interpolation[/-][+]Add "name" field to secrets and configs to allow interpolation in Compose files[/+]on Nov 6, 2017
Activity
[-]Add secret.name and config.name to allow interpolation[/-][+]Add "name" field to secrets and configs to allow interpolation[/+][-]Add "name" field to secrets and configs to allow interpolation[/-][+]Add "name" field to secrets and configs to allow interpolation in Compose files[/+]ilyasotkov commentedon Nov 6, 2017
#668