forked from opennetworkinglab/ngsdn-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (35 loc) · 929 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3"
services:
mininet:
image: opennetworking/ngsdn-tutorial:stratum_bmv2
hostname: mininet
container_name: mininet
privileged: true
tty: true
stdin_open: true
restart: always
volumes:
- ./tmp:/tmp
- ./mininet:/mininet
ports:
- "50001:50001"
- "50002:50002"
- "50003:50003"
- "50004:50004"
# NGSDN_TOPO_PY is a Python-based Mininet script defining the topology. Its
# value is passed to docker-compose as an environment variable, defined in
# the Makefile.
entrypoint: "/mininet/${NGSDN_TOPO_PY}"
onos:
image: onosproject/onos:2.2.2
hostname: onos
container_name: onos
ports:
- "8181:8181" # HTTP
- "8101:8101" # SSH (CLI)
volumes:
- ./tmp/onos:/root/onos/apache-karaf-4.2.8/data/tmp
environment:
- ONOS_APPS=gui2,drivers.bmv2,lldpprovider,hostprovider
links:
- mininet