You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
853 B

  1. version: '3'
  2. services:
  3. client:
  4. image: chord
  5. build: .
  6. container_name: client
  7. command: python3 client.py
  8. depends_on: [ node_2, node_7, node_11, node_17, node_22, node_27 ]
  9. node_2:
  10. image: chord
  11. build: .
  12. container_name: node_2
  13. command: sh -c 'python3 node*.py 2'
  14. node_7:
  15. image: chord
  16. build: .
  17. container_name: node_7
  18. command: sh -c 'python3 node*.py 7'
  19. node_11:
  20. image: chord
  21. build: .
  22. container_name: node_11
  23. command: sh -c 'python3 node*.py 11'
  24. node_17:
  25. image: chord
  26. build: .
  27. container_name: node_17
  28. command: sh -c 'python3 node*.py 17'
  29. node_22:
  30. image: chord
  31. build: .
  32. container_name: node_22
  33. command: sh -c 'python3 node*.py 22'
  34. node_27:
  35. image: chord
  36. build: .
  37. container_name: node_27
  38. command: sh -c 'python3 node*.py 27'