docker: add ovsdb-server and ovs-vswitch

This commit is contained in:
zhihui.ding
2023-04-04 11:11:32 +08:00
parent eec45c75fa
commit cda472b82c
10 changed files with 94 additions and 41 deletions

View File

@@ -1,16 +1,38 @@
version: "2.3"
services:
ovsdb-server:
image: "openlan:latest"
entrypoint: ["/var/openlan/script/ovsdb-server.sh", "start"]
volumes:
- /opt/openlan/run/openvswitch:/run/openvswitch
- /opt/openlan/etc/openvswitch:/etc/openvswitch
ovs-vswitchd:
image: "openlan:latest"
privileged: true
entrypoint: ["/var/openlan/script/ovs-vswitchd.sh", "start"]
volumes:
- /opt/openlan/run/openvswitch:/run/openvswitch
depends_on:
- ovsdb-server
confd:
image: "openlan-confd:latest"
image: "openlan:latest"
entrypoint: ["/var/openlan/script/confd.sh", "start"]
volumes:
- /opt/openlan/confd:/var/openlan/confd
- /opt/openlan/etc/openlan:/etc/openlan
switch:
image: "openlan-switch:latest"
image: "openlan:latest"
privileged: true
entrypoint: ["/var/openlan/script/switch.sh", "start"]
ports:
- 10000:10000
- 10002:10002
volumes:
- /opt/openlan/confd:/var/openlan/confd
- /opt/openlan/run/openvswitch:/run/openvswitch
- /opt/openlan/etc/openvswitch:/etc/openvswitch
- /opt/openlan/etc/openlan:/etc/openlan
depends_on:
- confd
- ovsdb-server
- ovs-vswitchd