-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.example.yaml
84 lines (78 loc) · 2.1 KB
/
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
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
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=redis1'
- '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='
- 'SOCKET=on'
- 'SOCKET_URL=http://pow-phalanx:6000'
- 'SOCKET_TOKEN=test-subscription-token'
depends_on:
- redis1
- webapp
- pow-phalanx
- resource-monitor
ports:
- '3000:3000'
pow-phalanx:
container_name: pow-phalanx
image: ruisiang/pow-phalanx
environment:
- 'PORT=6000'
- 'DATABASE_HOST=redis2'
- 'DATABASE_PORT=6379'
- 'DATABASE_PASSWORD='
- 'SUBSCRIPTION_TOKEN=test-subscription-token'
- 'CONTROLLER_TOKEN=test-controller-token'
- 'MODEL_TOKEN=test-model-token'
- 'CONTROLLER_BROADCAST_INTERVAL=20'
- 'STAT_FETCH_INTERVAL=5'
- 'STAT_KEEP_HISTORY_TIME=60'
- 'RESOURCE_MONITOR=on'
- 'RESOURCE_MONITOR_HOST=resource-monitor'
- 'RESOURCE_MONITOR_PORT=3000'
- 'SETTINGS_FETCH=on'
- 'RESTFUL=on'
- 'RESTFUL_PORT=9000'
depends_on:
- redis2
ports:
- '6000:6000'
- '9000:9000'
redis1:
container_name: redis1
image: redis:alpine
redis2:
container_name: redis2
image: redis:alpine
#####################################
# Test hello-world webapp container #
#####################################
webapp:
container_name: webapp
image: ruisiang/trapbox
resource-monitor:
container_name: resource-monitor
image: ruisiang/resource-monitor
environment:
- 'PORT=3000'
- 'INTERVAL=5'