https://github.com/johnae/pritunl
Pritunl - http://pritunl.com - as a Docker container ready for use
https://github.com/johnae/pritunl
Last synced: 11 months ago
JSON representation
Pritunl - http://pritunl.com - as a Docker container ready for use
- Host: GitHub
- URL: https://github.com/johnae/pritunl
- Owner: johnae
- Created: 2015-03-04T22:43:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-15T20:50:51.000Z (almost 10 years ago)
- Last Synced: 2024-04-24T03:38:11.277Z (about 2 years ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 24
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Pritunl as a Docker container
Just build it or pull it from johnae/pritunl. Run it something like this:
```
docker run -d --privileged -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp johnae/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 MONGODB_URI env var like this:
```
docker run -d --privileged -e MONGODB_URI=mongodb://some-mongo-host:27017/pritunl -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp johnae/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:
```shell
## 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 MONGODB_URI=mongodb://some-mongo-host:27017/pritunl -p 1194:1194/udp -p 1194:1194/tcp -p 9700:9700/tcp -e SERVICE_NAME=%H -e SERVICE_1194_ID=pritunl-vpn -e SERVICE_9700_ID=pritunl-web johnae/pritunl
```
Then you're on your own, but take a look at http://pritunl.com or https://github.com/pritunl/pritunl