NAT / docker-compose.yml
Fred808's picture
Upload 12 files
6c71751 verified
raw
history blame contribute delete
496 Bytes
version: '3.8'
services:
nat-gateway:
build: .
container_name: nat-gateway
privileged: true
cap_add:
- NET_ADMIN
- SYS_MODULE
ports:
- "2222:22" # SSH port
- "1080:1080" # SOCKS5 port
volumes:
- ./ssh-config:/app/ssh-config
- ./socks5-config:/app/socks5-config
restart: unless-stopped
networks:
- nat-network
networks:
nat-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16