Select Git revision
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