File tree 2 files changed +59
-2
lines changed
2 files changed +59
-2
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,37 @@ docker run \
34
34
35
35
### docker-compose
36
36
37
- ```
38
-
37
+ ``` yml
38
+ version : ' 2.2'
39
+ services :
40
+ ovpn :
41
+ image : slocomptech/openvpn
42
+ container_name : ovpn
43
+ hostname : ovpn
44
+ cap_add :
45
+ - NET_ADMIN
46
+ ports :
47
+ - " 1194:1194/udp"
48
+ volumes :
49
+ - ./data:/config
50
+ environment :
51
+ - PUID=1000
52
+ - PGUID=1000
53
+ restart : on-failure
54
+ # If you want to build from source add build:
55
+ build :
56
+ context : .
57
+ cache_from :
58
+ - lsiobase/alpine.python3:latest
59
+ networks :
60
+ mynetwork :
61
+ ipv4_address : 10.0.0.5
62
+ ipv6_address : 2001:1111::5
63
+
64
+ networks :
65
+ mynetwork :
66
+ driver : host
67
+ enable_ipv6 : true
39
68
` ` `
40
69
41
70
## Parameters
Original file line number Diff line number Diff line change
1
+ #
2
+ # OpenVPN server sample configuration
3
+ #
4
+
5
+ version : ' 2.2'
6
+ services :
7
+ ovpn :
8
+ image : slocomptech/openvpn
9
+ container_name : ovpn
10
+ hostname : ovpn
11
+ cap_add :
12
+ - NET_ADMIN
13
+ ports :
14
+ - " 1194:1194/udp"
15
+ volumes :
16
+ - ./data:/config
17
+ # environment:
18
+ # - PUID=1000
19
+ # - PGUID=1000
20
+ restart : on-failure
21
+ build :
22
+ context : .
23
+ cache_from :
24
+ - lsiobase/alpine.python3:latest
25
+
26
+ network_mode : " bridge"
27
+ # network_mode: "host"
28
+
You can’t perform that action at this time.
0 commit comments