📦 EqualifyEverything / lets-go

📄 docker-compose.yml · 212 lines
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
206
207
208
209
210
211
212version: '3.8'

services:

# Workers
    scan-axe:
        image: equalifyapp/integration-axe:latest
        environment:
            - APP_PORT=8083
            - RABBIT_USERNAME=worker_axe
            - RABBIT_PASSWORD=drop_the_axe
            - RABBIT_HOST=rabbit
            - RABBIT_VHOST=gova11y
            - USE_PROXY=true
            - PROXY_HTTP=a11yproxy:8888
            - PROXY_HTTPS=a11yproxy:8888
            - LOG_LEVEL
        networks:
            - gova11y-int
        depends_on:
            - rabbit
            - a11yproxy
        deploy:
            replicas: 1
            restart_policy:
                condition: on-failure

    scan-uppies:
        image: equalifyapp/integration-uppies:latest
        environment:
            - APP_PORT=8083
            - RABBIT_USERNAME=worker_uppies
            - RABBIT_PASSWORD=pass_the_uppies_please
            - RABBIT_HOST=rabbit
            - RABBIT_VHOST=gova11y
            - USE_PROXY=true
            - PROXY_HTTP=a11yproxy:8888
            - PROXY_HTTPS=a11yproxy:8888
            - LOG_LEVEL
        networks:
            - gova11y-int
        depends_on:
            - rabbit
            - a11yproxy
        deploy:
            replicas: 1
            restart_policy:
                condition: on-failure

    crawler:
        image: equalifyapp/integration-crawler:latest
        environment:
            - APP_PORT=8086
            - USE_PROXY=true
            - PROXY_HTTP=a11yproxy:8888
            - PROXY_HTTPS=a11yproxy:8888
            - LOG_LEVEL
        networks:
            - gova11y-int
        depends_on:
            - rabbit
            - a11yproxy
        deploy:
            replicas: 1
            restart_policy:
                condition: on-failure


# RabbitMQ Service
    rabbit:
        image: equalifyapp/a11y-rabbit:latest
        hostname: rabbit
        ports:
            - "4369:4369/tcp"
            - "5672:5672/tcp"
            - "15672:15672/tcp"
        networks:
            - gova11y-int
        healthcheck:
            test: ["CMD-SHELL", "rabbitmqctl wait -q -t 5 /var/lib/rabbitmq/mnesia/rabbit@rabbit.pid"]
            interval: 10s
            timeout: 10s
            retries: 3
        deploy:
            restart_policy:
                condition: on-failure

# Matrix
    matrix:
        image: equalifyapp/a11ymatrix:latest
        environment:
            - DB_HOST=postgres
            - DB_PORT=5432
            - DB_USER=a11ydata
            - DB_PASSWORD=a11yAllTheThings!
            - DB_NAME=a11ydata
            - LOG_LEVEL
            - APP_PORT=8087
        ports:
            - "8087:8087/tcp"
        networks:
            - gova11y-int
            - gova11y-mid
        depends_on:
            - postgres
            - rabbit
        deploy:
            restart_policy:
                condition: on-failure

# Rabbit Hole - Insert values to Postgres
    rabbit-hole:
        image: equalifyapp/rabbit-hole:latest
        environment:
        - DB_HOST=postgres
        - DB_PORT=5432
        - DB_USER=a11ydata
        - DB_PASSWORD=a11yAllTheThings!
        - DB_NAME=a11ydata
        - LOG_LEVEL
        - APP_PORT=8084
        ports:
            - "8084:8084"
        networks:
            - gova11y-int
            - gova11y-mid
        depends_on:
            - rabbit
            - postgres
        deploy:
            restart_policy:
                condition: on-failure

# Grafana
    a11yfana:
        image: equalifyapp/a11yfana:latest
        ports:
            - "3000:3000"
        networks:
            - gova11y-mid
            - gova11y-ext
        depends_on:
            - postgres
        restart: always
        volumes:
            - a11yfana_data:/var/lib/grafana

# Postgres
    postgres:
        image: equalifyapp/database:latest
        hostname: postgres
        environment:
            - POSTGRES_DB=a11ydata
            - POSTGRES_USER=a11ydata
            - POSTGRES_PASSWORD=a11yAllTheThings!
            - POSTGRES_PORT=5432
        ports:
            - "5432:5432"
        networks:
            - gova11y-mid
        volumes:
            - a11ygres_data:/var/lib/postgresql/data
        healthcheck:
            test: ["CMD-SHELL", "pg_isready -U grafananalytics -d grafana"]
            interval: 15s
            timeout: 5s
            retries: 3


# Proxy Server
    a11yproxy:
        image: qmcgaw/gluetun:latest
        hostname: a11yproxy
        cap_add:
            - NET_ADMIN
        environment:
            - VPN_SERVICE_PROVIDER=mullvad
            - VPN_TYPE=wireguard
            - WIREGUARD_PRIVATE_KEY
            - WIREGUARD_ADDRESSES=10.65.90.193/32
            - SERVER_COUNTRIES=USA
            # HTTP Proxy: https://github.com/qdm12/gluetun/wiki/HTTP-proxy-options
            - HTTPPROXY=on
            - HTTPPROXY_LOG=on
            - HTTPPROXY_LISTENING_ADDRESS=:8888
            # DNS: https://github.com/qdm12/gluetun/wiki/DNS-options
            - DNS_ADDRESS=127.0.0.1
            - DOT_PRIVATE_ADDRESS=172.172.172.172
            - BLOCK_MALICIOUS=off
            - DOT_CACHING=on
            - DOT=on
            # Other Options: https://github.com/qdm12/gluetun/wiki/Other-options
            - TZ=AMERICA/NEW_YORK
            # Firewall: https://github.com/qdm12/gluetun/wiki/Firewall-options
            - FIREWALL_DEBUG=on
        deploy:
            replicas: 1
            restart_policy:
                condition: on-failure
        networks:
            - gova11y-int


networks:
    gova11y-int:
    gova11y-mid:
    gova11y-ext:

volumes:
    a11ygres_data:
    a11yfana_data: