services: foo: secrets: - secret1 - secret2 - secret3 secrets: secret1: file: ./foo/bar secret2: environment: FOO_BAR secret3: external: true name: "secret_name"