blob: 49e199d2316cde998d758ff1d42408187059703a [file] [log] [blame]
version: '2'
services:
consul:
image: consul:latest
command: agent -server -bootstrap -client 0.0.0.0 -ui
ports:
- "8300:8300"
- "8400:8400"
- "8500:8500"
- "8600:8600/udp"
environment:
#SERVICE_53_IGNORE: "yes"
SERVICE_8300_IGNORE: "yes"
SERVICE_8400_IGNORE: "yes"
SERVICE_8500_NAME: "consul-rest"
#
# Registrator
#
registrator:
image: gliderlabs/registrator:latest
command: [
"-ip=${DOCKER_HOST_IP}",
"-retry-attempts", "100",
"-cleanup",
# "-internal",
"consul://consul:8500"
]
links:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
#
# Voltha server instance(s)
#
voltha:
image: cord/voltha
command: [
"/voltha/voltha/main.py",
"-v",
"--consul=${DOCKER_HOST_IP}:8500",
"--rest-port=8880",
"--grpc-port=50555",
"--backend=consul",
"-v"
]
ports:
- 8880:8880
- 50055:50555
- 18880
depends_on:
- consul
links:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
#
# Chameleon server instance(s)
#
chameleon:
image: cord/chameleon
command: [
"/chameleon/chameleon/main.py",
"--rest-port=8881",
"--grpc-endpoint=${DOCKER_HOST_IP}:50055",
"--instance-id-is-container-name"
]
ports:
- 8881:8881
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
#
# onos-1
#
onos1:
image: cord/onos
container_name: onos1
ports:
- 6633:6653
- 8101:8101
- 8181:8181
environment:
ONOS_APPS: drivers,openflow
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
restart: unless-stopped
#
# onos-2
#
onos2:
image: cord/onos
container_name: onos2
ports:
- 6644:6653
- 8102:8101
- 8182:8181
environment:
ONOS_APPS: drivers,openflow
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
restart: unless-stopped
#
# onos-3
#
onos3:
image: cord/onos
container_name: onos3
ports:
- 6655:6653
- 8103:8101
- 8183:8181
environment:
ONOS_APPS: drivers,openflow
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
restart: unless-stopped
#
# ofagent server instance
#
ofagent:
image: cord/ofagent
command: /ofagent/ofagent/main.py --grpc-endpoint=${DOCKER_HOST_IP}:50055 --controller ${DOCKER_HOST_IP}:6633 ${DOCKER_HOST_IP}:6644 ${DOCKER_HOST_IP}:6655
depends_on:
- voltha
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
restart: unless-stopped