PRITUNL_DONT_WRITE_CONFIG if set, /etc/pritunl.conf will not be auto-written on container start.PRITUNL_DEBUG must be true or false - controls the debug config key.PRITUNL_BIND_ADDR must be a valid IP on the host - defaults to 0.0.0.0 - controls the bind_addr config key.PRITUNL_PORT must be a valid port for pritunl to listen web to listen on - default to 9700 - controls the port config key.PRITUNL_MONGODB_URI URI to mongodb instance, default is starting a local mongodb instance in the container and use that.Just build it or pull it from jippi/pritunl. Run it something like this:
docker run \
-d \
--privileged \
-p 1194:1194/udp \
-p 1194:1194/tcp \
-p 9700:9700/tcp \
jippi/pritunl
If you have a mongodb somewhere you'd like to use for this rather than starting the built-in one you can
do so through the PRITUNL_MONGODB_URI env var like this:
docker run \
-d \
--privileged \
-e PRITUNL_MONGODB_URI=mongodb://some-mongo-host:27017/pritunl \
-p 1194:1194/udp \
-p 1194:1194/tcp \
-p 9700:9700/tcp \
jippi/pritunl
Example production usage:
mkdir -p /gluster/docker0/pritunl/{mongodb,pritunl}
docker run \
--name=pritunl \
--detach \
--privileged \
--network=host \
--restart=always \
-v /gluster/docker0/pritunl/mongodb:/var/lib/mongodb \
-v /gluster/docker0/pritunl/pritunl:/var/lib/pritunl \
-v /gluster/docker0/pritunl/pritunl.conf:/etc/pritunl.conf \
jippi/pritunl
Then you can login to your pritunl web ui at https://docker-host-address:9700
Username: pritunl Password: pritunl
I would suggest using docker data volume for persistent storage of pritunl data, something like this:
## create the data volume
docker run \
-v /var/lib/pritunl \
--name=pritunl-data busybox
## use the data volume when starting pritunl
docker run \
--name pritunl \
--privileged \
--volumes-from=pritunl-data \
-e PRITUNL_MONGODB_URI=mongodb://some-mongo-host:27017/pritunl \
-p 1194:1194/udp \
-p 1194:1194/tcp \
-p 9700:9700/tcp \
jippi/pritunl
Then you're on your own, but take a look at http://pritunl.com or https://github.com/pritunl/pritunl
Based on johnae/pritunl
Content type
Image
Digest
Size
194.2 MB
Last updated
over 9 years ago
docker pull rxwatcher/docker-pritunl