-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
152 lines (143 loc) · 3.74 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
version: '3'
services:
httpx:
environment:
- HTTPBIN_HOST=nghttp2
- HTTPBIN_NO_PROXY_HOST=http://httpbin:8000
- HTTPX_HTTP_PROXY=http://proxyuser:password@httpproxy:3128
- HTTPX_HTTPS_PROXY=http://proxyuser:password@httpproxy:3128
- HTTPX_HTTP2_PROXY=http://proxyuser:password@http2proxy:80
- HTTPX_SOCKS4_PROXY=socks4://user4:@socksproxy:8080
- HTTPX_SOCKS4A_PROXY=socks4a://user4:@socksproxy:8080
- HTTPX_SOCKS5_PROXY=socks5://user5:password@socksproxy:8080
- HTTPX_SSH_PROXY=ssh://sshproxy:22
- HTTPX_NO_JITTER=1
- N=6 # minitest workers
- MT_CPU=6 # minitest workers
- CI=1
- GEM_HOME=/usr/local/bundle
- BUNDLE_PATH=/usr/local/bundle
- BUNDLE_SILENCE_ROOT_WARNING=1
- BUNDLE_APP_CONFIG=/usr/local/bundle
- HTTPBIN_ALTSVC_HOST=another2
- AWS_DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AMZ_HOST=aws:4566
- WEBDAV_HOST=webdav
- DD_INSTRUMENTATION_TELEMETRY_ENABLED=false
image: ruby:alpine
privileged: true
depends_on:
- httpproxy
- http2proxy
- socksproxy
- sshproxy
- nghttp2
- aws
- ws-echo-server
- webdav
- altsvc-nghttp2
volumes:
- ./:/home
entrypoint:
/home/test/support/ci/build.sh
sshproxy:
image: connesc/ssh-gateway
volumes:
- ./test/support/ssh:/config
depends_on:
- nghttp2
socksproxy:
image: qautomatron/docker-3proxy
ports:
- "8080:8080"
- "3129:3129"
volumes:
- ./test/support/ci:/etc/3proxy
httpproxy:
image: sameersbn/squid:3.5.27-2
ports:
- "3128:3128"
volumes:
- ./test/support/ci/squid/proxy.conf:/etc/squid/squid.conf
- ./test/support/ci/squid/proxy-users-basic.txt:/etc/squid/proxy-users-basic.txt
- ./test/support/ci/squid/proxy-users-digest.txt:/etc/squid/proxy-users-digest.txt
command:
-d 3
http2proxy:
image: registry.gitlab.com/os85/httpx/nghttp2:1
ports:
- 3300:80
depends_on:
- httpproxy
entrypoint:
/usr/local/bin/nghttpx
command:
--no-ocsp --frontend '*,80;no-tls' --backend 'httpproxy,3128' --http2-proxy
nghttp2:
image: registry.gitlab.com/os85/httpx/nghttp2:1
ports:
- 80:80
- 443:443
depends_on:
- httpbin
entrypoint:
/usr/local/bin/nghttpx
volumes:
- ./test/support/ci:/home
command:
--conf /home/nghttp.conf --no-ocsp --frontend '*,80;no-tls' --frontend '*,443'
networks:
default:
aliases:
- another
altsvc-nghttp2:
image: registry.gitlab.com/os85/httpx/nghttp2:1
ports:
- 81:80
- 444:443
depends_on:
- httpbin
entrypoint:
/usr/local/bin/nghttpx
volumes:
- ./test/support/ci:/home
command:
--conf /home/nghttp.conf --no-ocsp --frontend '*,80;no-tls' --frontend '*,443' --altsvc "h2,443,nghttp2"
networks:
default:
aliases:
- another2
httpbin:
environment:
- DEBUG=True
image: citizenstig/httpbin
command:
gunicorn --bind=0.0.0.0:8000 --workers=6 --access-logfile - --error-logfile - --log-level debug --capture-output httpbin:app
aws:
image: localstack/localstack
environment:
- SERVICES=s3
- HOSTNAME=aws
- DEBUG=1
ports:
- 4566:4566
volumes:
- ./test/support/ci/aws:/docker-entrypoint-initaws.d
networks:
default:
aliases:
- test.aws
ws-echo-server:
environment:
- PORT=80
ports:
- 8083:80
image: jmalloc/echo-server
webdav:
image: bytemark/webdav
environment:
- AUTH_TYPE=Basic
- USERNAME=user
- PASSWORD=pass