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
|
2020-07-01 15:46:24 +02:00
|
|
|
- no_gateway
|
2024-01-13 23:18:42 +01:00
|
|
|
service_4:
|
|
|
|
container_name: service_4
|
|
|
|
image: leoverto/dummy-image
|
|
|
|
ports:
|
|
|
|
- "1234:1234"
|
|
|
|
- "0.0.0.0:5678:5678/udp"
|
|
|
|
networks:
|
|
|
|
- internet
|
2020-06-04 23:02:33 +02:00
|
|
|
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:
|
2024-01-13 23:18:42 +01:00
|
|
|
internet:
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.bridge.enable_icc: "false"
|
2020-06-04 23:02:33 +02:00
|
|
|
network_a:
|
|
|
|
network_b:
|
|
|
|
network_c:
|
|
|
|
empty_network:
|
2020-07-01 15:46:24 +02:00
|
|
|
no_gateway:
|
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
|
|
|
com.docker.network.bridge.name: br-no-gateway
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.22.1.0/24
|