This repository has been archived by the owner on Nov 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
docker-compose.yml
74 lines (74 loc) · 1.78 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
---
version: '3'
services:
apache-waf:
build:
context: .
dockerfile: v2-apache/Dockerfile
environment:
BACKEND: http://backend # https://httpbin.org
PORT: "8080"
SSL_PORT: "8443"
METRICS_ALLOW_FROM: All
APACHE_ALWAYS_TLS_REDIRECT: "on"
ports:
- "8080:8080"
- "8443:8443"
user: "10001"
depends_on:
- backend
apache-waf-alpine:
build:
context: .
dockerfile: v2-apache/Dockerfile-alpine
environment:
BACKEND: http://backend # https://httpbin.org
PORT: "8080"
SSL_PORT: "4443"
METRICS_ALLOW_FROM: All
ports:
- "8080:8080"
- "4443:4443"
user: "10001"
depends_on:
- backend
nginx-waf:
build:
context: .
dockerfile: v3-nginx/Dockerfile
environment:
BACKEND: http://backend # https://httpbin.org
PORT: "8080"
SSL_PORT: "4443"
DNS_SERVER: "1.1.1.1"
METRICS_ALLOW_FROM: all
ports:
- "8081:8080"
- "4444:4443"
user: "10001"
depends_on:
- backend
# If you need to modify nginx config, mount your volume as the template file
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/templates/nginx.conf.template:rw
nginx-waf-alpine:
build:
context: .
dockerfile: v3-nginx/Dockerfile-alpine
environment:
BACKEND: http://backend # https://httpbin.org
PORT: "8080"
SSL_PORT: "4443"
DNS_SERVER: "1.1.1.1"
METRICS_ALLOW_FROM: all
ports:
- "8081:8080"
- "4444:4443"
user: "10001"
depends_on:
- backend
# If you need to modify nginx config, mount your volume as the template file
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/templates/nginx.conf.template:rw
backend:
image: docker.io/kennethreitz/httpbin