Containerized Pritunl service.
docker run -it --rm \
--name mongo \
--net host \
mongo:3.7 \
--bind_ip 127.0.0.1
docker run -it --rm \
--privileged \
--name pritunl \
--net host \
--env MONGODB_URI=mongodb://127.0.0.1:27017/pritunl \
quay.io/kato/pritunl:latest
[Unit]
Description=Pritunl
After=mongodb.service
Requires=mongodb.service
[Service]
Slice=kato.slice
Restart=always
RestartSec=10
TimeoutStartSec=0
KillMode=mixed
LimitNOFILE=25000
Environment=IMG=quay.io/kato/pritunl:latest
ExecStartPre=/usr/bin/rkt fetch ${IMG}
ExecStart=/usr/bin/rkt run --stage1-from-dir=stage1-fly.aci \
--net=host \
--dns=host \
--hosts-entry=host \
--set-env MONGODB_URI=mongodb://127.0.0.1:27017/pritunl \
${IMG}
[Install]
WantedBy=kato.target