-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
187 lines (177 loc) · 4.32 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
version: '3.3'
services:
pptp:
env_file: .env
image: mmontagna/docker-vpn-pptp:latest
container_name: pptp
privileged: true
restart: always
network_mode: host
environment:
- client=${PPTP_USER_LIST}
l2tp:
env_file: .env
image: fcojean/l2tp-ipsec-vpn-server:latest
container_name: l2tp
privileged: true
restart: always
ports:
- 510:500/udp
- 4510:4500/udp
volumes:
- /lib/modules:/lib/modules:ro
environment:
- VPN_IPSEC_PSK=${L2TP_IPSEC_PSK}
- VPN_USER_CREDENTIAL_LIST=${L2TP_USER_LIST}
openconnect:
env_file: .env
image: quay.io/aminvakil/ocserv:latest
container_name: openconnect
restart: always
privileged: true
ports:
- ${OPENCONNECT_PORT}:443
- ${OPENCONNECT_PORT}:443/udp
environment:
- CA_CN=${OPENCONNECT_CA_CN}
- CA_ORG=${OPENCONNECT_CA_ORG}
- CA_DAYS=${OPENCONNECT_CA_DAYS}
- SRV_CN=${OPENCONNECT_SRV_CN}
- SRV_ORG=${OPENCONNECT_SRV_ORG}
- SRV_DAYS=${OPENCONNECT_SRV_DAYS}
- NO_TEST_USER=${OPENCONNECT_NO_TEST_USER}
mtproto:
env_file: .env
image: telegrammessenger/proxy:latest
container_name: mtproto
restart: always
ports:
- ${MTPROTO_PORT}:443
environment:
- SECRET_COUNT=${MTPROTO_SECRET_COUNT}
- SECRET=${MTPROTO_SECRET}
sstp:
env_file: .env
image: fernandezcuesta/softethervpn:latest
container_name: sstp
restart: always
ports:
- ${SSTP_L2TP_PORT_500}:500/udp
- ${SSTP_L2TP_PORT_4500}:4500/udp
- ${SSTP_L2TP_PORT_1701}:1701/tcp
- ${SSTP_OPENVPN_PORT}:1194/udp
- ${SSTP_PORT}:443/tcp
environment:
- PSK=${L2TP_IPSEC_PSK}
- USERNAME=milad
- PASSWORD=P@SSWORD
- SERVER_PWD=P@SSWORD
- OPENVPN_ENABLED=true
- SSTP_ENABLED=true
- CERT=/tmp/cert.pem
- KEY=/tmp/key.pem
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- SERVERURL=auto #optional
- SERVERPORT=51820 #optional
- PEERS=10 #optional
- PEERDNS=8.8.8.8 #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
volumes:
- /opt/wireguard-server/config:/config
- /lib/modules:/lib/modules
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped
shadowsocks:
image: shadowsocks/shadowsocks-libev:latest
container_name: shadow_socks
restart: always
ports:
- "8888:8388/tcp"
- "8888:8388/udp"
environment:
- PASSWORD=P@SSWORD
- METHOD=chacha20-ietf-poly1305
- DNS_ADDRS=1.1.1.1,8.8.8.8
proxy:
image: datadog/squid
container_name: proxy_squid
ports:
- "8181:3128"
volumes:
- ./squid.conf:/etc/squid/squid.conf
- ./passwords:/etc/squid/passwords
restart: always
mikrotik:
image: evilfreelancer/docker-routeros:6.46.5
container_name: mikrotik
restart: unless-stopped
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
ports:
- "22280:80"
- "28080:8080"
- "22221:21"
- "22222:22"
- "22223:23"
- "22443:443"
- "21705:1701"
- "21725:1723"
- "21726:1194/tcp"
- "21727:1194/udp"
- "21812:1812/udp"
- "21813:1813/udp"
- "24500:4500/udp"
- "22250:50"
- "22251:51"
- "22500:500/udp"
- "22021:2021"
- "22022:2022"
- "22023:2023"
- "22027:2027"
- "25900:5900"
- "28291:8291"
- "28728:8728"
- "28729:8729"
- "28900:8900"
dns_proxy:
env_file: .env
cap_add:
- NET_ADMIN
container_name: dns_proxy
ports:
- "53:53/udp"
environment:
- IP=PublicIpOfContainer
build:
dockerfile: Dockerfile
context: .
restart: always
ulimits:
nofile:
soft: 1024000
hard: 1024000
v2ray:
image: ghcr.io/miladrahimi/v2ray:latest
container_name: v2ray_upstream
restart: always
command: [ "v2ray", "-config=/etc/v2ray/config.json" ]
ports:
- ${VMESS_PORT:-1013}:1013
volumes:
- ./config/:/etc/v2ray/
- ./logs:/var/log/v2ray/
https://github.com/straxico/v/blob/main/Readme.md