---
version: "3.7"
services:
gmzta-docker:
image: gmzta/gmzta:latest
container_name: gmzta-docker
hostname: gmzta-docker
environment:
- GM_TOKEN=gmzta-authkey-123-456789abcdef
- GM_CONFIG_DIR=/var/lib/gmzta
- GM_TUN=false
- GM_OUTBOUND_HTTP_PROXY_LISTEN=127.0.0.1:1080
- GM_SOCKS5_SERVER=127.0.0.1:1080
volumes:
- ${PWD}/gmzta-docker/state:/var/lib/gmzta
restart: unless-stopped
networks:
- default
nginx-test:
image: nginx
network_mode: service:gmzta-docker
environment:
- ALL_PROXY=socks5://127.0.0.1:1080
- HTTP_PROXY=http://127.0.0.1:1080
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
networks:
default:
driver: bridge