summaryrefslogtreecommitdiffstats
path: root/tests/2-nodes.yml
blob: e1fbcfe3b1ce87696d06e7c0347124dd205f7169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "3"
services:
  client:
    build:
      context: ..
      dockerfile: ${DOCKERFILE}
      args:
        - BASE_IMAGE
    hostname: client
    privileged: ${PRIVILEGED}
    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: ${PRIVILEGED}
    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}