-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) · 1.15 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
54
55
56
version: '3'
services:
ovsdb:
build:
context: ./
dockerfile: Dockerfile.ovsdb
image: vdasari/ovsdb:latest
container_name: ovsdb
hostname: ovsdb.lan
volumes:
- ${HOME}:${HOME}
privileged: true
tty: true
networks:
default_ovsdb_net:
ipv4_address: 10.1.123.10
ovs1:
image: vdasari/ovs:fst_debian_host
container_name: ovs1
hostname: ovs1
command: start-userspace
privileged: true
volumes:
- ${HOME}:${HOME}
entrypoint: |
bash -c 'bash -s <<EOF
/usr/share/openvswitch/scripts/ovs-ctl --ovs-userspace=yes start
ovs-vsctl set-manager ptcp:6640
sleep infinity
EOF'
networks:
default_ovsdb_net:
ipv4_address: 10.1.123.20
ovs2:
image: vdasari/ovs:fst_debian_host
container_name: ovs2
hostname: ovs2
command: start-userspace
privileged: true
volumes:
- ${HOME}:${HOME}
privileged: true
networks:
default_ovsdb_net:
ipv4_address: 10.1.123.30
networks:
default_ovsdb_net:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.1.123.0/24