Compose-Library/vpn-pritunl.compose.yaml.txt
2025-01-25 18:01:48 +01:00

28 lines
863 B
Text

services:
pritunl:
image: ghcr.io/jippi/docker-pritunl:latest
container_name: pritunl-${IP}-http${HTTP_WEBPORT}-ssl${HTTPS_WEBPORT}-srv${SERVER_PORT}
privileged: true
ports:
- ${IP}:${HTTP_WEBPORT}:80
- ${IP}:${SERVER_PORT}:22550/udp
- ${IP}:${SERVER_PORT}:22550/tcp
- ${IP}:${HTTPS_WEBPORT}:443
dns: ${VPN_DNS_SERVER}
restart: unless-stopped
volumes:
- ${DATA_DIR}/data/pritunl.conf:/etc/pritunl.conf
- ${DATA_DIR}/data/pritunl:/var/lib/pritunl
environment:
- PRITUNL_MONGODB_URI=mongodb://mongodb:27018/pritunl
depends_on:
- mongodb
mongodb:
image: mongo:latest
container_name: mongodb
restart: unless-stopped
volumes:
- ${DATA_DIR}/data/mongodb:/data/db
networks: {}
# MongoDB Connection is automatic and within internal network between containers.