Skip to content

Commit c2fc912

Browse files
committed
Readme update
1 parent dcd2b94 commit c2fc912

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Optionally you can add [OpenVPN WEB UI](https://github.com/d3vilh/openvpn-ui) co
8888
restart: always
8989
```
9090

91+
Check attached `docker-compose-openvpnui.yml` file for openvpn-server & openvpn-ui tandem configuration.
92+
9193
### Run with Docker:
9294
```shell
9395
docker run --interactive --tty --rm \

docker-compose-openvpnui.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
version: "3.5"
3+
4+
services:
5+
openvpn:
6+
container_name: openvpn
7+
# If you want to build your own image with docker-compose, uncomment the next line, comment the "image:" line and run "docker-compose build" following by "docker-compose up -d"
8+
# build: .
9+
image: d3vilh/openvpn-server:latest
10+
privileged: true
11+
ports:
12+
- "1194:1194/udp"
13+
environment:
14+
TRUST_SUB: "10.0.70.0/24"
15+
GUEST_SUB: "10.0.71.0/24"
16+
HOME_SUB: "192.168.88.0/24"
17+
volumes:
18+
- ./pki:/etc/openvpn/pki
19+
- ./clients:/etc/openvpn/clients
20+
- ./config:/etc/openvpn/config
21+
- ./staticclients:/etc/openvpn/staticclients
22+
- ./log:/var/log/openvpn
23+
- ./fw-rules.sh:/opt/app/fw-rules.sh
24+
cap_add:
25+
- NET_ADMIN
26+
restart: always
27+
depends_on:
28+
- "openvpn-ui"
29+
30+
openvpn-ui:
31+
container_name: openvpn-ui
32+
image: d3vilh/openvpn-ui:latest
33+
environment:
34+
- OPENVPN_ADMIN_USERNAME={{ ovpnui_user }}
35+
- OPENVPN_ADMIN_PASSWORD={{ ovpnui_password }}
36+
privileged: true
37+
ports:
38+
- "8080:8080/tcp"
39+
volumes:
40+
- ./:/etc/openvpn
41+
- ./db:/opt/openvpn-gui/db
42+
- ./pki:/usr/share/easy-rsa/pki
43+
- /var/run/docker.sock:/var/run/docker.sock:ro
44+
restart: always

0 commit comments

Comments
 (0)