mirror of
https://github.com/luscis/openlan.git
synced 2025-10-15 21:20:37 +08:00
docker: container network for switch
This commit is contained in:
@@ -1,32 +1,48 @@
|
||||
version: "2.3"
|
||||
services:
|
||||
ovsdb-server:
|
||||
confd:
|
||||
restart: always
|
||||
image: "openlan:latest"
|
||||
privileged: true
|
||||
entrypoint: ["/var/openlan/script/confd.sh", "start"]
|
||||
# network_mode: "host"
|
||||
volumes:
|
||||
- /opt/openlan/confd:/var/openlan/confd
|
||||
- /opt/openlan/etc/openlan:/etc/openlan
|
||||
ports:
|
||||
- 10000:10000
|
||||
- 10002:10002
|
||||
ovsdb-server:
|
||||
restart: always
|
||||
image: "openlan:latest"
|
||||
privileged: true
|
||||
entrypoint: ["/var/openlan/script/ovsdb-server.sh", "start"]
|
||||
# network_mode: "host"
|
||||
network_mode: service:confd
|
||||
volumes:
|
||||
- /opt/openlan/run/openvswitch:/run/openvswitch
|
||||
- /opt/openlan/etc/openvswitch:/etc/openvswitch
|
||||
depends_on:
|
||||
- confd
|
||||
ovs-vswitchd:
|
||||
restart: always
|
||||
image: "openlan:latest"
|
||||
privileged: true
|
||||
# network_mode: "host"
|
||||
network_mode: service:confd
|
||||
entrypoint: ["/var/openlan/script/ovs-vswitchd.sh", "start"]
|
||||
volumes:
|
||||
- /opt/openlan/run/openvswitch:/run/openvswitch
|
||||
depends_on:
|
||||
- confd
|
||||
- ovsdb-server
|
||||
confd:
|
||||
image: "openlan:latest"
|
||||
entrypoint: ["/var/openlan/script/confd.sh", "start"]
|
||||
volumes:
|
||||
- /opt/openlan/confd:/var/openlan/confd
|
||||
- /opt/openlan/etc/openlan:/etc/openlan
|
||||
switch:
|
||||
restart: always
|
||||
image: "openlan:latest"
|
||||
privileged: true
|
||||
# network_mode: "host"
|
||||
network_mode: service:confd
|
||||
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
|
||||
|
Reference in New Issue
Block a user