forked from IQTLabs/dovesnap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (53 loc) · 1.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.7'
services:
plugin:
restart: always
image: iqtlabs/dovesnap:v1.1.23
volumes:
- /run/docker/plugins:/run/docker/plugins
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/var/run/openvswitch:/var/run/openvswitch
- /opt/faucetconfrpc:/faucetconfrpc
network_mode: host
pid: host
extra_hosts:
- 'faucetconfrpc:${FAUCETCONFRPC_IP}'
depends_on:
ovs:
condition: service_healthy
cap_add:
- NET_ADMIN
- SYS_ADMIN
- SYS_CHROOT
# TODO: needed for ip netns inside container, provide min apparmor profile.
security_opt: ['apparmor:unconfined']
command:
- --debug
- --faucetconfrpc_addr=faucetconfrpc
- --faucetconfrpc_port=59999
- --faucetconfrpc_keydir=/faucetconfrpc
- '--mirror_bridge_in=${MIRROR_BRIDGE_IN}'
- '--mirror_bridge_out=${MIRROR_BRIDGE_OUT}'
- '--stack_priority1=${STACK_PRIORITY1}'
- '--stacking_interfaces=${STACKING_INTERFACES}'
- '--stack_mirror_interface=${STACK_MIRROR_INTERFACE}'
- '--default_ofcontrollers=${STACK_OFCONTROLLERS}'
labels:
- "dovesnap.namespace=primary"
ovs:
restart: always
image: iqtlabs/openvswitch:v3.3.0
healthcheck:
test: 'ovs-vsctl show'
volumes:
- /usr/local/var/run/openvswitch:/usr/local/var/run/openvswitch
- ovs-data:/etc/openvswitch
network_mode: host
devices:
- "/dev/net/tun:/dev/net/tun"
cap_add:
- NET_ADMIN
labels:
- "dovesnap.namespace=primary"
volumes:
ovs-data: