-
Notifications
You must be signed in to change notification settings - Fork 0
/
pro.yml
87 lines (82 loc) · 2.16 KB
/
pro.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
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
tyk:
profiles: ["all", "master-datacenter"]
container_name: tyk
image: ${tyk_ee_image}
env_file:
- ${env_file}
volumes:
- ./certs:/usr/local/share/ca-certificates
- ${confs_dir}:/conf/
ports:
- "6000:6000"
- "8003:8003"
- "8080:8080"
entrypoint: ["/bin/bash"]
command:
- "-c"
- |
update-ca-certificates
/opt/tyk-gateway/tyk --conf /conf/tyk.conf
tyk-analytics:
profiles: ["all", "master-datacenter"]
container_name: tyk-analytics
image: ${tyk_analytics_image}
env_file:
- ${env_file}
environment:
- TYK_DB_LICENSEKEY=${TYK_DB_LICENSEKEY}
volumes:
- ./certs:/usr/local/share/ca-certificates
- ${confs_dir}:/conf/
ports:
- "3000:3000"
- "5000:5000"
- "1026:1025"
command: [ "--conf", "/conf/tyk-analytics.conf" ]
restart: on-failure
tyk-pump:
profiles: ["all", "master-datacenter"]
container_name: tyk-pump
image: ${tyk_pump_image}
env_file:
- ${env_file}
volumes:
- ${confs_dir}:/conf/
ports:
- "8061:8061"
command: [ "--conf", "/conf/tyk-pump.conf" ]
depends_on:
- wait_deps
gateway-checker:
profiles: ["all", "master-datacenter"]
image: curlimages/curl
command: tail -f /dev/null
depends_on:
- tyk
healthcheck:
test: curl -s -k --fail https://tyk:8080/hello | grep -o '.*status":"pass".*dashboard":{"status":"pass".*redis":{"status":"pass"'
interval: 5s
retries: 10
start_period: 4s
timeout: 10s
dashboard-checker:
profiles: ["all", "master-datacenter"]
image: curlimages/curl
command: tail -f /dev/null
depends_on:
- tyk-analytics
healthcheck:
test: ["CMD-SHELL", "curl -s -o /dev/null -w '%{http_code}' http://tyk-analytics:3000/hello/ | grep -q '^200$'"]
interval: 10s
retries: 30
start_period: 10s
timeout: 10s
wait:
profiles: ["all", "master-datacenter"]
image: hello-world:linux
depends_on:
gateway-checker:
condition: service_healthy
dashboard-checker:
condition: service_healthy