-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
206 lines (167 loc) · 5.85 KB
/
docker-compose.yaml
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
194
195
196
197
198
199
200
201
202
203
204
205
version: "3"
services:
blazeserver:
image: golang
container_name: blazeserver
# env_file:
# - .env
environment:
- secret=supersecretkeyyoushouldnotcommit
- domain=blazetunnel.meddler.xyz
command: ./blazetunnel server -t 3600
working_dir: /go/src/github.com/rounak316/blazetunnel
volumes:
- ./pkg/restapi/private.json:/secret/firebase.json
- ./blazetunnel:/go/src/github.com/rounak316/blazetunnel/blazetunnel
# read_only: true
expose:
- 80
ports:
- 2723:2723/udp
- 90:8080
client_dev_1:
image: golang
volumes:
- ./blazetunnel:/go/src/github.com/rounak316/blazetunnel/blazetunnel
container_name: client_dev_1
# env_file:
# - .env
environment:
# - token=n87vve5uYvzzMi6kib01YE8SiDg0pMbmTTc94WCUkCVrPRo4gy06UsfuxnNOmTBVn0qLCZeZQ4FWmFP4vuaRuXIHTH
- token=XZ52DKSNxeYhHbw8NAsOGRhtelGuS2tzDtMhaafi3BdCkiEDflTAkUbIYaNULE2Vm2oLEqQfnGjc2J
- tunnel=blazetunnel.meddler.xyz
command: ./blazetunnel client --local mockserver:8000 -i 3600
working_dir: /go/src/github.com/rounak316/blazetunnel
read_only: true
depends_on:
- mockserver
client_dev_2:
image: golang
volumes:
- ./blazetunnel:/go/src/github.com/rounak316/blazetunnel/blazetunnel
container_name: client_dev_2
# env_file:
# - .env
environment:
- token=3GrYlDmXiP8v2x51k5zKCebzvOWqKmd5aCRVGpcF9TU3Jf5Q0rGkZ6EfmWDusJpoI4brrIIiJ0bMQx6jlv15AJpdjZOu
- tunnel=blazetunnel.meddler.xyz
command: ./blazetunnel client --local mockserver:8000 -i 3600
working_dir: /go/src/github.com/rounak316/blazetunnel
read_only: true
depends_on:
- mockserver
auth_dev:
image: golang
volumes:
- ./blazetunnel:/go/src/github.com/rounak316/blazetunnel/blazetunnel
container_name: clauth_devient_dev
# env_file:
# - .env
environment:
- SECRET_KEY=supersecretkey1
- APPNAME=t2
- PASSWORD=supersecretkey
- server=blazetunnel.meddler.xyz
- service=boom2
command: ./blazetunnel register -P 2723
working_dir: /go/src/github.com/rounak316/blazetunnel
read_only: true
server:
build: .
container_name: server
env_file:
- .env
environment:
- SECRET_KEY=supersecretkey
command: server --domain ${DOMAIN_NAME} -t 3600
ports:
- 80:80/tcp
- 2723:2723/udp
# volumes:
# - ./:/go/src/github.com/rounak316/blazetunnel
client:
build: .
container_name: client
env_file:
- .env
command: client --tunnel "${SERVICE_NAME}.${DOMAIN_NAME}" --local mockserver:8000 -i 3600
# extra_hosts:
# quick.server: 127.0.0.1
# ports:
# - 3001:3001/tcp
# - 2722:2723/udp
depends_on:
- mockserver
# volumes:
# - ./:/go/src/github.com/rounak316/blazetunnel
client_2:
build: .
container_name: client_2
env_file:
- .env
command: client --tunnel "${SERVICE_NAME}.${DOMAIN_NAME}" --local mockserver:8000 -i 3600
depends_on:
- mockserver
# extra_hosts:
# quick.server: 127.0.0.1
# volumes:
# - ./:/go/src/github.com/rounak316/blazetunnel
auth:
build: .
container_name: auth
env_file:
- .env
command: auth --server ${DOMAIN_NAME} -u ${SERVICE_NAME} -p test -P 2723
volumes:
- ./:/go/src/github.com/rounak316/blazetunnel
prodclient:
build: https://github.com/rounak316/blazetunnel.git
entrypoint: /bin/blazetunnel
command: client --tunnel "${SERVICE_NAME}.${DOMAIN_NAME}:2723" --local "mockserver:8000" -i 3600
env_file:
- .env
ports:
- 3001:3001/tcp
- 2723:2723/udp
depends_on:
- mockserver
mockserver:
image: opensecurity/mobile-security-framework-mobsf
ports:
- 4200:8000
# blazeserver:
# build: https://github.com/rounak316/blazetunnel.git
# container_name: blazeserver
# env_file:
# - .env
# command: server --domain ${DOMAIN_NAME} -i 3600
# expose:
# - 443
# - 80
# ports:
# - 2723:2723/udp
nginx:
image: nginx:1.15-alpine
# restart: unless-stopped
volumes:
- ./frontend/blazetunnel/dist/blazetunnel/:/usr/share/nginx/html/
- ./builder/apps:/var/www/download
- ./nginx/data/nginx/app.conf:/etc/nginx/conf.d/app.conf
- ./nginx/data/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/data/html/error.html:/usr/share/nginx/html/error.html
- ./nginx/data/certbot/conf:/etc/letsencrypt
- ./nginx/data/certbot/www:/var/www/certbot
depends_on:
- blazeserver
ports:
- "443:443"
- "80:80"
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
dockerblaze:
image: meddler/blazetunnel:0.0.1
container_name: dockerblaze
command: client --tunnel "${SERVICE_NAME}.${DOMAIN_NAME}" --local mockserver:8000 -i 3600
blazetunnel_sidecar:
image: meddler/blazetunnel:0.0.1
container_name: blazetunnel_sidecar
command: client --token TYt7fqqcySqwPGxEQq5gJ5YeUQfaStAfZ0aAVTd7J8BJOrFjVsBKlJBDG4K3N7xrSnUGdiivgT --local localhost:9090