---
version: "3.7"
services:
gmzta-docker:
image: registry.cn-beijing.aliyuncs.com/gmzta/gmzta:latest
container_name: gmzta-docker
hostname: gmzta
environment:
- GM_TOKEN=gmzta-authkey-123-456789abcdef
- GM_CONFIG_DIR=/var/lib/gmzta
- GM_TUN=true
volumes:
- /var/lib/gmzta:/var/lib/gmzta
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- NET_ADMIN
- NET_RAW
restart: unless-stopped
networks:
- default
nginx-test:
image: nginx
network_mode: service:gmzta-docker
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
default:
driver: host