Skip to content
Snippets Groups Projects
Select Git revision
  • 4f5bf74e78e56c615d88ee0502b57d8c165f7e1e
  • main default protected
  • jw_sonar
  • v6.0.0 protected
  • update-dependencies
  • v5.0.0 protected
  • jw_sonar_backup
  • 6.0.0-dev
  • 5.0.0
  • 4.2.0
  • 4.1.1
  • 4.1.0
  • 4.0.0
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.2.0
20 results

.env.vault

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