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 57 58 59 60 61 62 63
|
version: "2.3"
services:
oor:
image: openoverlayrouter/oor:latest
cap_add:
- NET_ADMIN
- NET_RAW
sysctls:
- net.ipv4.conf.default.rp_filter=0
- net.ipv4.conf.all.rp_filter=0
- net.ipv4.ip_forward=1
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.all.disable_ipv6=0
devices:
- "/dev/net/tun:/dev/net/tun"
networks:
0rloc:
ipv4_address: <ip>
ipv6_address: <ipv6>
1eids:
ipv4_address: <ip>
ipv6_address: <ipv6>
environment:
- IPV4EIDPREFFIX="<network>\/<mask>"
- IPV6EIDPREFFIX="<network>\/<mask>"
- DEBUG="0"
- OPMODE="xTR"
- IPMAPRESOLVER=<IP of the MapResolver>
- IPMAPSERVER=<IP of the MapServer>
- KEYMAPSERVER=<String>
- IPPROXYETRV4=<IP of the Proxy ETR IPv4>
- IPPROXYETRV6=<IP of the Proxy ETR IPv6>
volumes:
- type: bind
source: "./<conf_file>"
target: "/oor/oor.conf"
restart: on-failure
watchtower:
image: v2tec/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --cleanup --interval 30 <your_stack_container_name>
networks:
1eids:
driver: bridge
enable_ipv6: true
ipam:
driver: default
config:
- subnet: <EID IPv4 Prefix>
- subnet: <EID IPv6 Prefix>
0rloc:
driver: macvlan
enable_ipv6: true
ipam:
driver: default
config:
- subnet: <IPv4 RLOC Subnet>
- subnet: <IPv6 RLOC Subnet>
driver_opts:
parent: <linux host interface>
macvlan_mode: bridge
|