Sign inSign up

jknsware/docker-pritunl

By jknsware

•Updated almost 9 years ago

Pritunl with MongoDB Docker Container

Image
0

1.0K

jknsware/docker-pritunl repository overview

⁠Pritunl with MongoDB Docker Container

⁠How to use this container

I would recommend creating two container volumes to save the Pritunl config and MongoDB files.

Example:

$ docker volume create pritunl-mongodata
$ docker volume create pritunl-pritunldata

Then run the container.

Example:

$ docker run -d --privileged --hostname <insert_hostname> --restart=unless-stopped -p 1194:1194/udp -p 1194:1194/tcp -p 443:443/tcp -p 80:80/tcp -p <external_port>:<external_port> -v pritunl-mongodata:/data/db -v pritunl-pritunldata:/var/lib/pritunl --name pritunl jknsware/docker-pritunl

Once done, wait a few seconds and open https://localhost in your browser.

From there, follow the setup instructions found at Pritunl⁠.

The container has to be run with --privileged otherwise the OpenVPN server won't start. I've yet to find a reason why that is required. This can be a security concern⁠.

⁠How to build this container

Basic instructions on how to build this container yourself.

Example:

$ git clone [email protected]:jknsware/docker-pritunl.git
$ cd docker-pritunl
$ docker build . --tag <insert_your_tag_here>
$ docker run -d --privileged --hostname <insert_hostname> --restart=unless-stopped -p 1194:1194/udp -p 1194:1194/tcp -p 443:443/tcp -p 80:80/tcp -p <external_port>:<external_port> -v pritunl-mongodata:/data/db -v pritunl-pritunldata:/var/lib/pritunl --name pritunl jknsware/docker-pritunl
⁠Thanks

Tag summary

Content type

Image

Digest

Size

250.2 MB

Last updated

almost 9 years ago

docker pull jknsware/docker-pritunl