File: stack-with-named-resources.yml

package info (click to toggle)
docker.io 27.5.1%2Bdfsg4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 67,452 kB
  • sloc: sh: 5,847; makefile: 1,146; ansic: 664; python: 162; asm: 133
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