services: pritunl: image: ghcr.io/jippi/docker-pritunl:latest container_name: pritunl-front-${IP}-${HTTPS_PORT} privileged: true ports: - ${IP}:${HTTPS_PORT}:443 # SSL access only !, you can use any port but dont forget to enforce HTTPS and No-Verify if needed. # Servers Ports - Three Nodes - Add ports below, ensure EXT PORT is equal to INT PORT - ${IP}:${VPN_SERVER_01}:${VPN_SERVER_01} - ${IP}:${VPN_SERVER_02}:${VPN_SERVER_02} - ${IP}:${VPN_SERVER_03}:${VPN_SERVER_03} dns: - ${DNS_1_FRONT} - ${DNS_2_FRONT} - ${DNS_3_BACKS} - ${DNS_4_BACKS} restart: unless-stopped volumes: - ${DATA_DIR}/data/pritunl.conf:/etc/pritunl.conf - ${DATA_DIR}/data/pritunl:/var/lib/pritunl environment: - PRITUNL_MONGODB_URI=mongodb://${IP}:${DB_PORT}/pritunl depends_on: - mongodb mongodb: image: mongo:latest container_name: pritunl-back-${IP}-${DB_PORT} restart: unless-stopped ports: - ${IP}:${DB_PORT}:27017 volumes: - ${DATA_DIR}/data/mongodb:/data/db ###### pritunl.conf model ##################################### # Adapt data to your compose ! ############## # then place it to ${DATA_DIR}/data/pritunl.conf ############## ############################################################### # { # "mongodb_uri": "mongodb://0.0.0.0:27017/pritunl", # "server_key_path": "/var/lib/pritunl/pritunl.key", # "log_path": "/var/log/pritunl.log", # "static_cache": true, # "server_cert_path": "/var/lib/pritunl/pritunl.crt", # "temp_path": "/tmp/pritunl_%r", # "bind_addr": "0.0.0.0", # "debug": false, # "www_path": "/usr/share/pritunl/www", # "local_address_interface": "auto" # } ###############################################################