2018-03-12 15:02:18 -04:00
|
|
|
version: '3.5'
|
|
|
|
services:
|
|
|
|
web:
|
2023-02-23 09:00:59 -05:00
|
|
|
image: registry:5000/alpine:frozen
|
2018-03-12 15:02:18 -04:00
|
|
|
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
|