ruimarinho / docker-openvpn-monitor

The trusted multi-platform web-based OpenVPN Monitor docker image.
MIT License
102 stars 27 forks source link

Config File overwritten on startup #27

Open robertlynch3 opened 3 years ago

robertlynch3 commented 3 years ago

The docker building is overwriting the mounted config file.

version: '3'
services:
    openvpn-monitor:
      image: ruimarinho/openvpn-monitor
      volumes:
        - ./openvpn-monitor.conf:/openvpn-monitor/openvpn-monitor.conf
      ports:
        - 127.0.0.1:9000:80

Prior to startup, my config file look like

cat openvpn-monitor.conf
[OpenVPN-Monitor]
geoip_data=/var/lib/GeoIP/GeoLite2-City.mmdb
datetime_format=%d/%m/%Y %H:%M:%S
site=VPN
maps=False
maps_height=500

[site 0]
host=192.168.0.1
port=5555
name=site 0
password=abc123
show_disconnect=True

[site 1]
host=192.168.0.2
port=5555
name=site 1
password=abc123
show_disconnect=True

[site 2]
host=192.168.0.3
port=5555
name=site 2
password=abc123
show_disconnect=True

After startup my config file looks like

cat openvpn-monitor.conf
[OpenVPN-Monitor]
geoip_data=/var/lib/GeoIP/GeoLite2-City.mmdb
datetime_format=%d/%m/%Y %H:%M:%S
jandersonai commented 2 years ago

Also happening to me.

mrquincle commented 4 months ago

Any workaround?