forked from corazawaf/coraza-spoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.e2e.yaml
46 lines (46 loc) · 970 Bytes
/
docker-compose.e2e.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
version: "3.9"
services:
httpbin:
image: mccutchen/go-httpbin:v2.5.0
ports:
- 8080:8080
coraza:
build:
context: .
target: coreruleset
volumes:
- ./docker/e2e/e2e-rules.conf:/etc/coraza-spoa/rules/000-e2e-rules.conf
haproxy:
depends_on:
- coraza
- httpbin
image: ${HAPROXY_IMAGE:-haproxy:2.7-alpine}
command:
[
"sh",
"-c",
"haproxy -f /usr/local/etc/haproxy/haproxy.cfg | tee /var/lib/haproxy/hap.log"
]
ports: [ "4000:80" ]
links:
- "coraza:coraza"
- "httpbin:httpbin"
volumes:
- type: bind
source: ./docker/haproxy
target: /usr/local/etc/haproxy
- hap:/var/lib/haproxy
tests:
depends_on:
- haproxy
- coraza
links:
- "haproxy:haproxy"
- "httpbin:httpbin"
build:
context: docker/e2e
dockerfile: ./Dockerfile.curl
volumes:
- hap:/haproxy
volumes:
hap: