Files
luci-app-zt-gateway/docker-compose.yml

71 lines
1.7 KiB
YAML
Raw Normal View History

services:
openwrt-router:
build:
context: .
dockerfile: Dockerfile.router
image: zt-gateway-router:dev
container_name: openwrt-router
privileged: true
cap_add:
- NET_ADMIN
- SYS_ADMIN
networks:
zt-gateway-lan:
ipv4_address: "10.99.13.1"
zt-exit-net:
ipv4_address: "10.99.12.1"
environment:
ZTG_SKIP_PERSIST: "1"
ZTG_PING_IFACE: "br-zt"
ZTG_WIBLAN_CIDR: "10.99.13.0/24"
wiblan-client:
image: archlinux:latest
container_name: wiblan-client
networks:
zt-gateway-lan:
ipv4_address: "10.99.13.10"
cap_add:
- NET_ADMIN
command: ["sleep", "infinity"]
zt-gw-amsterdam:
image: archlinux:latest
container_name: zt-gw-amsterdam
privileged: true
cap_add:
- NET_ADMIN
networks:
zt-exit-net:
ipv4_address: "10.99.12.3"
volumes:
- ./docker/gw-entrypoint.sh:/usr/local/bin/gw-entrypoint.sh:ro
entrypoint: ["/bin/sh", "/usr/local/bin/gw-entrypoint.sh", "10.99.12.3", "10.99.12.1"]
zt-gw-tirunelveli:
image: archlinux:latest
container_name: zt-gw-tirunelveli
privileged: true
cap_add:
- NET_ADMIN
networks:
zt-exit-net:
ipv4_address: "10.99.12.5"
volumes:
- ./docker/gw-entrypoint.sh:/usr/local/bin/gw-entrypoint.sh:ro
entrypoint: ["/bin/sh", "/usr/local/bin/gw-entrypoint.sh", "10.99.12.5", "10.99.12.1"]
networks:
zt-gateway-lan:
driver: bridge
ipam:
config:
- subnet: "10.99.13.0/24"
gateway: "10.99.13.1"
zt-exit-net:
driver: bridge
ipam:
config:
- subnet: "10.99.12.0/24"
gateway: "10.99.12.1"