docker-pritunl icon indicating copy to clipboard operation
docker-pritunl copied to clipboard

Configurable config file location

Open martenjacobs opened this issue 3 years ago • 1 comments

It would be really helpful if it would be possible to control where the configuration file is located. That way you could mount a volume at /etc/pritunl without interfering with the entire /etc folder. Mounting a volume instead of the config file directly would make it easier to use this image in a docker-compose stack.

martenjacobs avatar Feb 14 '21 19:02 martenjacobs

Hi! Great idea - I'm open for a PR to fix it

This is how my own docker-compose configuration looks like

version: '3.3'
services:
    pritunl:
        container_name: pritunl
        privileged: true
        network_mode: host
        restart: always
        environment:
            - PRITUNL_DONT_WRITE_CONFIG=1
        volumes:
            - './mongodb:/var/lib/mongodb'
            - './pritunl:/var/lib/pritunl'
            - './etc/pritunl.conf:/etc/pritunl.conf'
        image: 'jippi/pritunl:1.29.2051.18'

jippi avatar Feb 15 '21 09:02 jippi