docker-openvpn-client icon indicating copy to clipboard operation
docker-openvpn-client copied to clipboard

setup container in docker-compose with environment variables

Open ghost opened this issue 7 years ago • 2 comments

Hello,

Is there a way I can start this container using docker compose environment variables? How do I set these config options as stated in the readme?

--config /vpn/client.conf --askpass /vpn/client.pwd --auth-nocache

ghost avatar Aug 14 '17 23:08 ghost

Welp this hasn't been answered by I'd like to know too.

raf924 avatar Feb 14 '19 12:02 raf924

version: '2'

services:
  openvpn-client:
    container_name: openvpn-client
    image: ekristen/openvpn-client
    stdin_open: true
    tty: true
    command: --config /vpn/client.ovpn --askpass /vpn/client.pwd --auth-nocache
    cap_add:
      - NET_ADMIN
    devices:
      - "/dev/net/tun:/dev/net/tun"
    volumes:
      - /data/vpn:/vpn

vincentbitter avatar Apr 30 '19 19:04 vincentbitter