-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
77 lines (75 loc) · 2.28 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3"
services:
mongodb:
image: mongo:latest
restart: always
hostname: pritunl-db
container_name: pritunlmdb
volumes:
- ./pritunl/mongodb:/data/db
networks:
VPN:
ipv4_address: 10.5.0.2
pritunl:
build:
context: ./pritunl
restart: always
hostname: pritunl
container_name: pritunl
# depends_on:
# - mongodb
# - dns
networks:
VPN:
ipv4_address: 10.5.0.3
privileged: true
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
links:
- mongodb
volumes:
- /etc/localtime:/etc/localtime:ro
ports:
# Under this port the Pritunl web interface will be exposed (for reverse proxies)
- 9700:9700
# The following are the two default ports for the tcp+udp servers (you may edit these as needed!)
- 1194:1194
- 1194:1194/udp
environment:
- TZ=UTC
- MONGODB_URI=mongodb://mongodb:27017/pritunl
# - MONGODB_URI=mongodb://10.5.0.2:27017/pritunl
# Also enable reverse proxie capabilities
- REVERSE_PROXY=true
pihole:
container_name: dns
hostname: dns
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "80:80/tcp"
networks:
VPN:
ipv4_address: 10.5.0.4
environment:
TZ: 'America/Chicago'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
- './pihole/etc-pihole:/etc/pihole'
- './pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN # Recommended but not required (DHCP needs NET_ADMIN)
restart: unless-stopped
networks:
VPN:
name: VPN
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1