This page covers common configuration steps for Dockovpn deployments.
Use the same configuration file referenced in the setup guide for your installation.
Dockovpn is generally configured through container runtime variables and mounted data volumes.
Typical files:
/opt/dockovpn/.env
docker-compose.yml
services:
dockovpn:
image: alekslitvinenk/openvpn:latest
container_name: dockovpn
cap_add:
- NET_ADMIN
ports:
- "1194:1194/udp"
volumes:
- ./openvpn-data:/opt/Dockovpn_data
environment:
- HOST_ADDR=vpn.example.com
- HOST_TUN_ADDR=10.8.0.1
restart: unless-stopped
/opt/Dockovpn_data persistent and backed up.1194 only as needed and restrict source ranges where possible.HOST_ADDR.Restart the service or reload the configuration using your init system or container manager.
docker compose up -d
Confirm the service is healthy, then test connectivity from a client.
docker compose ps
docker logs --tail=100 dockovpn
Validate tunnel from client side:
.ovpn profile.openvpn-data before major upgrades.