-
Notifications
You must be signed in to change notification settings - Fork 48
/
docker-compose.dev.yml
193 lines (191 loc) · 6.5 KB
/
docker-compose.dev.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
188
189
190
191
192
193
version: '3'
services:
mongodb:
image: mongo:latest
container_name: libertea-mongodb
hostname: libertea-mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=${PANEL_MONGODB_PASSWORD}
volumes:
- ./data/db:/data/db
restart: always
network_mode: host
logging:
options:
max-size: 10m
rsyslog:
build: ./syslog
hostname: libertea-rsyslog
container_name: libertea-rsyslog
restart: always
ports:
- "127.0.0.1:514:514/udp"
volumes:
- "./data/logs:/var/log/log"
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
cap_add:
- SYSLOG
logging:
options:
max-size: 10m
log-parser:
build: ./log-parser
container_name: libertea-log-parser
volumes:
- "./data/logs:/data/logs"
- "./data/usages:/data/usages"
- "./data/parsed-logs:/data/parsed-logs"
- "./data/all-domains-ever.lst:/data/all-domains-ever.lst:ro"
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
restart: always
logging:
options:
max-size: 10m
haproxy:
environment:
- CONN_VLESS_WS_URL=${CONN_VLESS_WS_URL}
- CONN_VLESS_WS_IP=${CONN_VLESS_WS_IP}
- CONN_VLESS_GRPC_URL=${CONN_VLESS_GRPC_URL}
- CONN_VLESS_GRPC_IP=${CONN_VLESS_GRPC_IP}
- CONN_VMESS_GRPC_URL=${CONN_VMESS_GRPC_URL}
- CONN_VMESS_GRPC_IP=${CONN_VMESS_GRPC_IP}
- CONN_TROJAN_WS_URL=${CONN_TROJAN_WS_URL}
- CONN_TROJAN_WS_IP=${CONN_TROJAN_WS_IP}
- CONN_TROJAN_GRPC_URL=${CONN_TROJAN_GRPC_URL}
- CONN_TROJAN_GRPC_IP=${CONN_TROJAN_GRPC_IP}
- CONN_SHADOWSOCKS_V2RAY_URL=${CONN_SHADOWSOCKS_V2RAY_URL}
- CONN_SHADOWSOCKS_V2RAY_IP=${CONN_SHADOWSOCKS_V2RAY_IP}
- CONN_SHADOWSOCKS_GRPC_URL=${CONN_SHADOWSOCKS_GRPC_URL}
- CONN_SHADOWSOCKS_GRPC_IP=${CONN_SHADOWSOCKS_GRPC_IP}
- HOSTCONTROLLER_API_KEY=${HOSTCONTROLLER_API_KEY}
- PANEL_ADMIN_UUID=${PANEL_ADMIN_UUID}
- PANEL_ADMIN_PASSWORD=${PANEL_ADMIN_PASSWORD}
build: ./haproxy
container_name: libertea-haproxy
volumes:
- ./haproxy:/usr/local/etc/haproxy/
- ./haproxy/script.lua:/haproxy-files/script.lua
- ./data/haproxy-lists:/haproxy-files/lists
- /etc/ssl/ha-certs:/etc/ssl/ha-certs
# - /var/lib/haproxy:/home/haproxy_stats
restart: always
network_mode: host
logging:
options:
max-size: 10m
depends_on:
# - panel
- log-parser
camouflage-nginx-fallback:
image: nginx:latest
container_name: libertea-camouflage-nginx-fallback
ports:
- "127.0.0.1:25898:80"
provider-trojan-ws:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/trojan-ws
ports:
- "127.0.0.1:2001:2001"
- "127.0.0.1:12001:12001"
cap_add:
- NET_ADMIN
container_name: libertea-provider-trojan-ws
restart: always
volumes:
- './providers/trojan-ws/config.json:/etc/xray/config.json'
- './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
- './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'
provider-trojan-grpc:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/trojan-grpc
ports:
- "127.0.0.1:2004:2004"
cap_add:
- NET_ADMIN
container_name: libertea-provider-trojan-grpc
restart: always
volumes:
- './providers/trojan-grpc/config.json:/etc/xray/config.json'
- './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
- './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'
provider-vless-ws:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/vless-ws
ports:
- "127.0.0.1:2002:2002"
- "127.0.0.1:12002:12002"
cap_add:
- NET_ADMIN
container_name: libertea-provider-vless-ws
restart: always
volumes:
- './providers/vless-ws/config.json:/etc/xray/config.json'
- './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
- './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'
provider-vless-grpc:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/vless-grpc
ports:
- "127.0.0.1:2005:2005"
cap_add:
- NET_ADMIN
container_name: libertea-provider-vless-grpc
restart: always
volumes:
- './providers/vless-grpc/config.json:/etc/xray/config.json'
- './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
- './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'
provider-vmess-grpc:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/vmess-grpc
ports:
- "127.0.0.1:2007:2007"
cap_add:
- NET_ADMIN
container_name: libertea-provider-vmess-grpc
restart: always
volumes:
- './providers/vmess-grpc/config.json:/etc/xray/config.json'
- './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
- './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'
provider-shadowsocks-v2ray:
environment:
- FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
- FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
build: ./providers/shadowsocks-v2ray
ports:
- "127.0.0.1:2003:2003"
cap_add:
- NET_ADMIN
container_name: libertea-provider-shadowsocks-v2ray
restart: always
volumes:
- './providers/shadowsocks-v2ray/config.env:/etc/xray/config.env'
# provider-shadowsocks-grpc:
# environment:
# - FIREWALL_OUTBOUND_UDP_PORTS=${FIREWALL_OUTBOUND_UDP_PORTS}
# - FIREWALL_OUTBOUND_TCP_PORTS=${FIREWALL_OUTBOUND_TCP_PORTS}
# build: ./providers/shadowsocks-grpc
# ports:
# - "127.0.0.1:2006:2006"
# cap_add:
# - NET_ADMIN
# container_name: libertea-provider-shadowsocks-grpc
# restart: always
# volumes:
# - './providers/shadowsocks-grpc/config.json:/etc/xray/config.json'
# - './data/certs/selfsigned/cert.pem:/etc/xray/cert.pem:ro'
# - './data/certs/selfsigned/privkey.pem:/etc/xray/privkey.pem:ro'