forked from prona-p4-learning-platform/learn-sdn-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
29 lines (28 loc) · 956 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
version: "3.7"
services:
p4host:
privileged: true
image: prona/p4-container
ports:
- 0.0.0.0:3005:3005
- 0.0.0.0:3022:22
working_dir: /home/p4
command: -s
container_name: p4-container
restart: unless-stopped
learn-sdn-hub:
image: prona/learn-sdn-hub
ports:
- 0.0.0.0:3001:3001
environment:
- BACKEND_HTTP_PORT="${BACKEND_HTTP_PORT}"
- BACKEND_TYPE="${BACKEND_TYPE}"
- VBOX_IP_ADDRESSES="${VBOX_IP_ADDRESSES}"
- VBOX_SSH_PORTS="${VBOX_SSH_PORTS}"
- SSH_USERNAME="${SSH_USERNAME}"
- SSH_PASSWORD="${SSH_PASSWORD}"
- BACKEND_USERS="${BACKEND_USERS}"
- BACKEND_USER_MAPPING="${BACKEND_USER_MAPPING}"
command: -p ${BACKEND_HTTP_PORT} -t ${BACKEND_TYPE} -a ${VBOX_IP_ADDRESSES} -s ${VBOX_SSH_PORTS} -u ${SSH_USERNAME} -w ${SSH_PASSWORD} -b ${BACKEND_USERS} -m ${BACKEND_USER_MAPPING}
container_name: learn-sdn-hub
restart: unless-stopped