aboutsummaryrefslogtreecommitdiffstats
path: root/tests/2-nodes.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/2-nodes.yml')
-rw-r--r--tests/2-nodes.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/2-nodes.yml b/tests/2-nodes.yml
new file mode 100644
index 000000000..51b9aeb89
--- /dev/null
+++ b/tests/2-nodes.yml
@@ -0,0 +1,45 @@
+version: "3"
+services:
+ client:
+ build:
+ context: ..
+ dockerfile: ${DOCKERFILE}
+ args:
+ - BASE_IMAGE
+ hostname: client
+ privileged: false
+ working_dir: /workspace
+ networks:
+ p2p-link:
+ ipv4_address: ${TOPOLOGY_2_NODES_IP_ADDRESS_CLIENT}
+ volumes:
+ - ..:/workspace:z
+ entrypoint: [/bin/bash, -x, -c]
+ command:
+ - tail -f /dev/null
+
+ server:
+ build:
+ context: ..
+ dockerfile: ${DOCKERFILE}
+ args:
+ - BASE_IMAGE
+ hostname: server
+ privileged: false
+ working_dir: /workspace
+ networks:
+ p2p-link:
+ ipv4_address: ${TOPOLOGY_2_NODES_IP_ADDRESS_SERVER}
+ volumes:
+ - ..:/workspace:z
+ entrypoint: [/bin/bash, -x, -c]
+ command:
+ - tail -f /dev/null
+
+networks:
+ p2p-link:
+ driver: bridge
+ ipam:
+ config:
+ - subnet: ${TOPOLOGY_2_NODES_IP_NETWORK}
+ gateway: ${TOPOLOGY_2_NODES_IP_GATEWAY}