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