Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup container in docker-compose with environment variables #4

Open
ghost opened this issue Aug 14, 2017 · 2 comments
Open

setup container in docker-compose with environment variables #4

ghost opened this issue Aug 14, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 14, 2017

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

@raf924
Copy link

raf924 commented Feb 14, 2019

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

@vincentbitter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants