...

Text file src/github.com/docker/cli/e2e/stack/testdata/stack-with-named-resources.yml

Documentation: github.com/docker/cli/e2e/stack/testdata

     1version: '3.5'
     2services:
     3  web:
     4    image: registry:5000/alpine:frozen
     5    command: top
     6    networks: [network1, network2]
     7    volumes: [volume1, volume2]
     8    secrets: [secret1, secret2]
     9    configs: [config1, config2]
    10
    11networks:
    12  network1:
    13    name: named-network
    14  network2:
    15volumes:
    16  volume1:
    17    name: named-volume
    18  volume2:
    19secrets:
    20  secret1:
    21    name: named-secret
    22    file: ./data
    23  secret2:
    24    file: ./data
    25configs:
    26  config1:
    27    name: named-config
    28    file: ./data
    29  config2:
    30    file: ./data

View as plain text