Skip to content
Snippets Groups Projects
Select Git revision
  • bfbd575ff1b936083d2ec920da415e02d3558d2e
  • live_exam_os_ubuntu default protected
2 results

vmDel.go

Blame
  • docker-compose.yml 1.29 KiB
    version: '3.8'
    
    services:
      comm0:
        image: mohamadmoussa/comm_image:2.0
        configs:
          - source: neighborhood_config
            target: /etc/neighbors.json
        networks:
          - commNetwork
        deploy:
          placement:
            constraints:
              - node.hostname == ip-10-0-0-42
        environment:
          - NODE_ID=comm0
    
      comm1:
        image: mohamadmoussa/comm_image:2.0
        configs:
          - source: neighborhood_config
            target: /etc/neighbors.json
        networks:
          - commNetwork
        deploy:
          placement:
            constraints:
              - node.hostname == ip-10-0-0-163
        environment:
          - NODE_ID=comm1
    
      comm2:
        image: mohamadmoussa/comm_image:2.0
        configs:
          - source: neighborhood_config
            target: /etc/neighbors.json
        networks:
          - commNetwork
        deploy:
          placement:
            constraints:
              - node.hostname == ip-10-0-0-253
        environment:
          - NODE_ID=comm2
    
      comm3:
        image: mohamadmoussa/comm_image:2.0
        configs:
          - source: neighborhood_config
            target: /etc/neighbors.json
        networks:
          - commNetwork
        deploy:
          placement:
            constraints:
              - node.hostname == ip-10-0-0-74
        environment:
          - NODE_ID=comm3
    
    networks:
      commNetwork:
        driver: overlay
    
    configs:
      neighborhood_config:
        external: true