Last active
July 23, 2021 07:12
-
-
Save costa/42462ec6116c32635b072da87f6a2804 to your computer and use it in GitHub Desktop.
Sample Docker Compose configuration for "staging" tests with OpenVPN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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