version: "3.8" services: amd64: platform: linux/amd64 container_name: cloudnet domainname: cloudnet.world restart: always tty: true privileged: true stdin_open: true network_mode: host build: context: ../ dockerfile: .local/Dockerfile.cnet network: host image: registry.cn-hangzhou.aliyuncs.com/cloudnet/cnet:${version:-latest} volumes: - /var/lib:/var/lib - /dev/net/tun:/dev/net/tun - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - /etc/resolv.conf:/etc/resolv.conf:ro - /etc/hosts:/etc/hosts:ro - /etc/hostname:/etc/hostname:ro command: /usr/local/bin/cloudnetd arm64: platform: linux/arm64 container_name: cloudnet domainname: cloudnet.world restart: always tty: true privileged: true stdin_open: true network_mode: host build: context: ../ dockerfile: .local/Dockerfile.cnet.arm64 network: host image: registry.cn-hangzhou.aliyuncs.com/cloudnet/cnet:${version:-latest}-arm64 volumes: - /var/lib:/var/lib - /dev/net/tun:/dev/net/tun - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - /etc/resolv.conf:/etc/resolv.conf:ro - /etc/hosts:/etc/hosts:ro - /etc/hostname:/etc/hostname:ro command: /usr/local/bin/cloudnetd