version: "3.8" services: test: image: busybox command: - cat - /run/secrets/my_secret_2 tmpfs: - /run - /tmp secrets: - source: my_secret target: new_secret secrets: my_secret: external: true