Skip to content

Commit dc593b2

Browse files
Create pritunl-official
1 parent c09162b commit dc593b2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pritunl-official

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://hub.docker.com/u/pritunl
2+
3+
docker network create pritunl --attachable
4+
5+
# https://hub.docker.com/_/mongo
6+
7+
docker run --name mongodb -e MONGO_INITDB_ROOT_USERNAME=mongoadmin -e MONGO_INITDB_ROOT_PASSWORD=secret -e MONGO_INITDB_DATABASE=pritunl --network pritunl -v mongodb:/data/db --restart unless-stopped -id mongo:latest
8+
9+
# mongo --username mongoadmin --password --authenticationDatabase admin --host localhost --port 27017
10+
11+
docker run --name pritunl --privileged -e MONGO_URI="mongodb://mongoadmin:secret@mongodb:27017/admin" -v pritunl:/var/lib/pritunl -v pritunl-conf:/etc --network pritunl -p 12323:1194/udp -p 12323:1194/tcp -p 80:80/tcp -p 443:443/tcp --restart unless-stopped -id docker.io/pritunl/pritunl-zero:latest
12+
13+
# https://docs.pritunl.com/docs/pritunl-zero-service
14+
15+
# docker exec -it pritunl sh -c "pritunl-zero default-password"

0 commit comments

Comments
 (0)