Last active
March 5, 2022 09:18
-
-
Save kraftwerk28/159f274650e66c4c442dfd042da6b69d to your computer and use it in GitHub Desktop.
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" | |
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