sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 4 | consul: |
| 5 | image: consul:latest |
| 6 | command: agent -server -bootstrap -client 0.0.0.0 -ui |
| 7 | ports: |
| 8 | - "8300:8300" |
| 9 | - "8400:8400" |
| 10 | - "8500:8500" |
| 11 | - "8600:8600/udp" |
| 12 | environment: |
| 13 | #SERVICE_53_IGNORE: "yes" |
| 14 | SERVICE_8300_IGNORE: "yes" |
| 15 | SERVICE_8400_IGNORE: "yes" |
| 16 | SERVICE_8500_NAME: "consul-rest" |
| 17 | # |
| 18 | # Registrator |
| 19 | # |
| 20 | registrator: |
| 21 | image: gliderlabs/registrator:latest |
| 22 | command: [ |
| 23 | "-ip=${DOCKER_HOST_IP}", |
| 24 | "-retry-attempts", "100", |
| 25 | "-cleanup", |
| 26 | # "-internal", |
| 27 | "consul://consul:8500" |
| 28 | ] |
| 29 | links: |
| 30 | - consul |
| 31 | volumes: |
| 32 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 33 | # |
| 34 | # Voltha server instance(s) |
| 35 | # |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 36 | voltha: |
| 37 | image: cord/voltha |
| 38 | command: [ |
| 39 | "/voltha/voltha/main.py", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 40 | "-v", |
| 41 | "--consul=${DOCKER_HOST_IP}:8500", |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 42 | "--rest-port=8880", |
| 43 | "--grpc-port=50555", |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 44 | "--backend=consul", |
| 45 | "-v" |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 46 | ] |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 47 | |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 48 | ports: |
| 49 | - 8880:8880 |
| 50 | - 50055:50555 |
| 51 | - 18880 |
sathishg | 5194e89 | 2017-06-30 16:46:26 +0530 | [diff] [blame] | 52 | depends_on: |
| 53 | - consul |
| 54 | links: |
| 55 | - consul |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 56 | volumes: |
| 57 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 58 | # |
| 59 | # Chameleon server instance(s) |
| 60 | # |
| 61 | chameleon: |
| 62 | image: cord/chameleon |
| 63 | command: [ |
| 64 | "/chameleon/chameleon/main.py", |
| 65 | "--rest-port=8881", |
| 66 | "--grpc-endpoint=${DOCKER_HOST_IP}:50055", |
| 67 | "--instance-id-is-container-name" |
| 68 | ] |
| 69 | ports: |
| 70 | - 8881:8881 |
| 71 | volumes: |
| 72 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 73 | # |
| 74 | # onos-1 |
| 75 | # |
| 76 | onos1: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 77 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 78 | container_name: onos1 |
| 79 | ports: |
| 80 | - 6633:6653 |
| 81 | - 8101:8101 |
| 82 | - 8181:8181 |
| 83 | environment: |
| 84 | ONOS_APPS: drivers,openflow |
| 85 | volumes: |
| 86 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 87 | restart: unless-stopped |
| 88 | |
| 89 | # |
| 90 | # onos-2 |
| 91 | # |
| 92 | onos2: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 93 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 94 | container_name: onos2 |
| 95 | ports: |
| 96 | - 6644:6653 |
| 97 | - 8102:8101 |
| 98 | - 8182:8181 |
| 99 | environment: |
| 100 | ONOS_APPS: drivers,openflow |
| 101 | volumes: |
| 102 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 103 | restart: unless-stopped |
| 104 | |
| 105 | # |
| 106 | # onos-3 |
| 107 | # |
| 108 | onos3: |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 109 | image: cord/onos |
sgovinda | cc73678 | 2017-05-02 20:06:37 +0530 | [diff] [blame] | 110 | container_name: onos3 |
| 111 | ports: |
| 112 | - 6655:6653 |
| 113 | - 8103:8101 |
| 114 | - 8183:8181 |
| 115 | environment: |
| 116 | ONOS_APPS: drivers,openflow |
| 117 | volumes: |
| 118 | - "/var/run/docker.sock:/tmp/docker.sock" |
| 119 | restart: unless-stopped |
| 120 | # |
| 121 | # ofagent server instance |
| 122 | # |
| 123 | ofagent: |
| 124 | image: cord/ofagent |
| 125 | command: /ofagent/ofagent/main.py --grpc-endpoint=${DOCKER_HOST_IP}:50055 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655 |
| 126 | depends_on: |
| 127 | - voltha |
| 128 | volumes: |
| 129 | - "/var/run/docker.sock:/tmp/docker.sock" |
sathishg | 239af45 | 2017-07-13 16:27:46 +0530 | [diff] [blame] | 130 | restart: unless-stopped |