2020-06-04 23:02:33 +02:00
|
|
|
version: '2.4'
|
|
|
|
|
|
|
|
services:
|
|
|
|
service_1:
|
|
|
|
container_name: service_1
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
networks:
|
|
|
|
- network_a
|
|
|
|
- network_b
|
|
|
|
service_2:
|
|
|
|
container_name: service_2
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
networks:
|
2020-06-05 01:01:30 +02:00
|
|
|
network_b:
|
|
|
|
network_c:
|
|
|
|
aliases:
|
|
|
|
- "s2.netc"
|
2020-06-04 23:02:33 +02:00
|
|
|
service_3:
|
|
|
|
container_name: service_3
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
networks:
|
|
|
|
- network_a
|
|
|
|
- network_b
|
|
|
|
- network_c
|
|
|
|
host_service:
|
|
|
|
container_name: host_service
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
network_mode: host
|
|
|
|
isolated_service:
|
|
|
|
container_name: isolated_service
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
network_mode: none
|
|
|
|
|
|
|
|
networks:
|
|
|
|
network_a:
|
|
|
|
network_b:
|
|
|
|
network_c:
|
|
|
|
empty_network:
|