File: stack-with-named-resources.yml

package info (click to toggle)
docker.io 28.5.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 69,048 kB
  • sloc: sh: 5,867; makefile: 863; ansic: 184; python: 162; asm: 159
file content (30 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '3.5'
services:
  web:
    image: registry:5000/alpine:frozen
    command: top
    networks: [network1, network2]
    volumes: [volume1, volume2]
    secrets: [secret1, secret2]
    configs: [config1, config2]

networks:
  network1:
    name: named-network
  network2:
volumes:
  volume1:
    name: named-volume
  volume2:
secrets:
  secret1:
    name: named-secret
    file: ./data
  secret2:
    file: ./data
configs:
  config1:
    name: named-config
    file: ./data
  config2:
    file: ./data