-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
104 lines (102 loc) · 4.72 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
###############################################################
# !!! IMPORTANT !!! #
# It is recommended to keep this comments! #
# Unless you have some good experience with docker-compose #
###############################################################
#
#
# VPNTabs
# Nicholas Ferreira - github.com/Nickguitar
# Gabriel Belli - github.com/gabrielbelli
#
#
#services:
#
# EXAMPLE_VPN: #
# image: squid_openvpn #
# volumes: # <-- NEEDED:
# - /path/to/vpn/files/folder:/ovpn # <-- Volume to mount you ovpn files in the container
# ports: # <-- OPTIONAL: use this if you want to map port to host
# - "3128:3128" # <-- Map squid port to host
# cap_add: # |\
# - NET_ADMIN # | \ +--------------------------------+
# devices: # --| \ | DO NOT CHANGE THIS! |
# - /dev/net/tun # --| / | IT IS NEEDED FOR VPN TO WORK |
# sysctls: # | / +--------------------------------+
# - "net.ipv6.conf.all.disable_ipv6=0" # |/
# restart: always # <-- You can change if you want
# environment: # <-- Environments variables to config the VPN:
# OVPN_FILE: "<PUT YOUR VPN FILE NAME HERE!>"# <-- NEEDED: put your ovpn file name
# VPN_USER: "<PUT YOUR VPN USER HERE!>" # <-- CONDITIONAL: if your vpn files do not include password
# VPN_PASSWORD: "<AND PASSWORD HERE!>" # and you need to put it manually
# networks: # +------------------------------------------+
# vpnbr: # | You can change if you want, you can |
# ipv4_address: 10.73.59.2 # | even use default or any existing network |
# # +------------------------------------------+
#
# EXAMPLE_TOR: #
# image: squid_openvpn #
# ports: # <-- OPTIONAL: if you want to map port to host
# - "9050:9050" # <-- Map TOR port to host
# restart: always # <-- You can change if you want
# environment: # <-- Environments variables to run TOR:
# TOR_CONTAINER: "1" # <-- NEEDED TO RUN TOR
# networks: # +------------------------------------------+
# vpnbr: # | You can change if you want, you can |
# ipv4_address: 10.73.59.4 # | even use default or any existing network |
# # +------------------------------------------+
#
#networks: #
# vpnbr: # |\ +--------------------------------+
# driver: bridge # --| \ | Also feel free to change |
# ipam: # --| / | if you know what you are doing |
# config: # |/ +--------------------------------+
# - subnet: 10.73.59.0/16 #
#
# Remember to keep spaces in the YAML syntax as it is above
#
#-------------------------------------------------------------------------------------------------------
#-------------------------------------------------------------------------------------------------------
#
# !!! CHANGE BELOW HERE: !!!
#
# Put your VPN container config down here!
# VPN:
# image: squid_openvpn
# volumes:
# - /path/to/vpn/files/folder:/ovpn
# ports:
# - "3128:3128"
# cap_add:
# - NET_ADMIN
# devices:
# - /dev/net/tun
# sysctls:
# - "net.ipv6.conf.all.disable_ipv6=0"
# restart: always
# environment:
# OVPN_FILE: "<PUT YOUR VPN FILE NAME HERE!>"
# VPN_USER: "<PUT YOUR VPN USER HERE!>"
# VPN_PASSWORD: "<AND PASSWORD HERE!>"
# networks:
# vpnbr:
# ipv4_address: 10.73.59.2
# Working example with TOR
services:
TOR:
image: squid_openvpn
# ports:
# - "9050:9050"
restart: always
environment:
TOR_CONTAINER: "1"
networks:
vpnbr:
ipv4_address: 10.73.59.3
# Network config
networks:
vpnbr:
driver: bridge
ipam:
config:
- subnet: 10.73.59.0/16