Add docker-compose file for testing different network configurations with dummy containers

This commit is contained in:
LeoVerto 2020-06-04 23:02:33 +02:00
parent 267bed9719
commit 7f20305350
2 changed files with 42 additions and 0 deletions

View file

@ -47,3 +47,9 @@ command as if you were running it in a local shell.
[dot]: https://www.graphviz.org/doc/info/lang.html
[gvonline]: https://dreampuf.github.io/GraphvizOnline/
## Development
If you'd like to contribute to this project, there is a sample docker-compose file
using dummy containers in `test`.
You can deploy it using `docker-compose -f test/docker-compose.yml up -d`

36
test/docker-compose.yml Normal file
View file

@ -0,0 +1,36 @@
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:
- network_b
- network_c
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: