Skip to content

Instantly share code, notes, and snippets.

@itsmepetrov
Last active May 9, 2018 12:41
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsmepetrov/6aaba0b83e0866bf245f3d689a0bfd62 to your computer and use it in GitHub Desktop.
Save itsmepetrov/6aaba0b83e0866bf245f3d689a0bfd62 to your computer and use it in GitHub Desktop.
Docker Compose VPN and Proxy
version: '3'
services:
vpn:
image: hwdsl2/ipsec-vpn-server
privileged: true
restart: always
volumes:
- /lib/modules:/lib/modules:ro
ports:
- 500:500/udp
- 4500:4500/udp
environment:
- VPN_IPSEC_PSK=your_secret
- VPN_USER=your_user
- VPN_PASSWORD=your_password
proxy:
image: dijedodol/simple-socks5-server
restart: always
ports:
- '1080:1080'
environment:
- SSS_USERNAME=your_user
- SSS_PASSWORD=your_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment