Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

Add (fake) support for configs and secrets #30

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

ulyssessouza
Copy link
Contributor

What I did
Implemented fake configs and secrets through volume bindings

Both service inline and configs&secrets blocks work. For an example:

version: "3.7"
services:
  test:
    image: nginx
    configs:
      - my_config
      - source: ./my_inline.txt
        target: /root/my_inline_inside.txt
    secrets:
      - my_secret
      - source: ./my_inline_secret.txt
        target: /root/my_inline_secret_inside.txt

configs:
  my_config:
    file: ./my_config.txt

secrets:
  my_secret:
    file: ./my_secret.txt

Related issue
Resolves: #10
Resolves: #11

(not mandatory) A picture of a cute animal, if possible in relation with what you did
fake

- This is done by just bind mounts as in volumes

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
@ulyssessouza ulyssessouza self-assigned this Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mount secrets into services Mount configs into services
2 participants