Skip to content

Instantly share code, notes, and snippets.

@costa
Last active July 23, 2021 07:12
Show Gist options
  • Save costa/42462ec6116c32635b072da87f6a2804 to your computer and use it in GitHub Desktop.
Save costa/42462ec6116c32635b072da87f6a2804 to your computer and use it in GitHub Desktop.
Sample Docker Compose configuration for "staging" tests with OpenVPN
version: '3.4'
services:
open-vpn:
image: dperson/openvpn-client
cap_add:
- net_admin
devices:
- /dev/net/tun
dns: 8.8.4.4 # NOTE not sure how to make this generic
command: -d -a "$OVPN_USER;$OVPN_OTP"
volumes:
- "$OVPN_CONF_DIR:/vpn"
tester:
depends_on:
- open-vpn
image: curlimages/curl
network_mode: service:open-vpn
entrypoint: sh -e /staging-test/curls.sh
volumes:
- .:/staging-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment