Skip to content

Instantly share code, notes, and snippets.

@kraftwerk28
Last active March 5, 2022 09:18
Show Gist options
  • Save kraftwerk28/159f274650e66c4c442dfd042da6b69d to your computer and use it in GitHub Desktop.
Save kraftwerk28/159f274650e66c4c442dfd042da6b69d to your computer and use it in GitHub Desktop.
version: "3"
services:
ovpn:
image: dperson/openvpn-client
cap_add:
- NET_ADMIN
security_opt:
- label:disable
networks:
- default
restart: unless-stopped
volumes:
- "/dev/net:/dev/net:z"
- "path/to/vpn/config/and/cert:/vpn"
command:
- "-v"
- "host;user;password"
# NOTE: if you have .ovpn config file, put it into <path/to/vpn/config/and/cert> as above
# and remove `command` directive (since user/password is already in that .ovpn)
# See https://github.com/dperson/openvpn-client#how-to-use-this-image for additional details
db1000n:
image: "ghcr.io/arriven/db1000n"
restart: unless-stopped
depends_on:
- ovpn
network_mode: "service:ovpn"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment