forked from RuiSiang/PoW-Shield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.example.yaml
38 lines (36 loc) · 999 Bytes
/
docker-compose.example.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
version: '3.4'
services:
pow-shield:
container_name: pow-shield
image: ruisiang/pow-shield
environment:
- 'PORT=3000'
- 'SESSION_KEY=abcdefghijklmnop'
- 'POW=on'
- 'NONCE_VALIDITY=60000'
- 'DIFFICULTY=13'
- 'BACKEND_URL=http://webapp:80'
- 'DATABASE_HOST=redis'
- 'DATABASE_PORT=6379'
- 'DATABASE_PASSWORD='
- 'RATE_LIMIT=on'
- 'RATE_LIMIT_SAMPLE_MINUTES=60'
- 'RATE_LIMIT_SESSION_THRESHOLD=100'
- 'RATE_LIMIT_BAN_IP=on'
- 'RATE_LIMIT_IP_THRESHOLD=500'
- 'RATE_LIMIT_BAN_MINUTES=15'
- 'WAF=on'
- 'WAF_URL_EXCLUDE_RULES='
- 'WAF_HEADER_EXCLUDE_RULES=14,33,80,96,100'
- 'WAF_BODY_EXCLUDE_RULES='
ports:
- '3000:3000'
redis:
container_name: redis
image: redis:alpine
#####################################
# Test hello-world webapp container #
#####################################
webapp:
container_name: webapp
image: ruisiang/trapbox