-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-stack.yaml
59 lines (55 loc) · 1.24 KB
/
docker-stack.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
version: "3.3"
networks:
reactor:
ipam:
config:
- subnet: 192.168.10.0/24
services:
report_mysql:
image: tascape/reactor-report-mysql:${RR_VERSION:-latest}
command: --sql_mode=""
networks:
- reactor
ports:
- "33306:3306"
environment:
- MYSQL_ROOT_PASSWORD=p@ssword
- MYSQL_DATABASE=reactor
- MYSQL_USER=reactor
- MYSQL_PASSWORD=p@ssword
volumes:
- $HOME/.reactor/db/:/var/lib/mysql
report_tomee:
image: tascape/reactor-report-tomee:${RR_VERSION:-latest}
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/rr/"]
interval: 30s
timeout: 10s
retries: 5
deploy:
restart_policy:
delay: 10s
networks:
- reactor
depends_on:
- report_mysql
ports:
- "38080:8080"
report_nginx:
image: tascape/reactor-report-nginx:${RR_VERSION:-latest}
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/rr/"]
interval: 30s
timeout: 10s
retries: 5
deploy:
restart_policy:
delay: 10s
networks:
- reactor
depends_on:
- report_tomee
ports:
- "30080:80"
volumes:
- $HOME/.reactor/logs/:/usr/share/nginx/html/logs/