From 7f2030535026b19a81d5f9cc9225816d19f22777 Mon Sep 17 00:00:00 2001 From: LeoVerto Date: Thu, 4 Jun 2020 23:02:33 +0200 Subject: [PATCH] Add docker-compose file for testing different network configurations with dummy containers --- README.md | 6 ++++++ test/docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 test/docker-compose.yml diff --git a/README.md b/README.md index 046d8c7..19b6ca0 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/test/docker-compose.yml b/test/docker-compose.yml new file mode 100644 index 0000000..108e4e1 --- /dev/null +++ b/test/docker-compose.yml @@ -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: