forked from dperson/openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.03 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2.1'
services:
service1:
image: docker_hub_user/container_name
depends_on:
- vpn
environment:
TZ: 'EST5EDT'
network_mode: "service:vpn"
read_only: true
tmpfs:
- /tmp
restart: unless-stopped
stdin_open: true
tty: true
volumes:
- /srv/service1:/var/lib/service1:Z
vpn:
image: dperson/openvpn-client
cap_add:
- net_admin
# dns:
# - 8.8.4.4
# - 8.8.8.8
environment:
TZ: 'EST5EDT'
read_only: true
tmpfs:
- /tmp
restart: unless-stopped
security_opt:
- label:disable
stdin_open: true
tty: true
volumes:
- /dev/net:/dev/net:z
web:
image: dperson/nginx
depends_on:
- service1
environment:
TZ: 'EST5EDT'
links:
- vpn:service1
ports:
- "80:80"
- "443:443"
read_only: true
tmpfs:
- /run
- /tmp
- /var/cache/nginx
restart: unless-stopped
stdin_open: true
tty: true
command: -w "http://service1:8888;/service1"