-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeps_pro-ha.yml
More file actions
191 lines (176 loc) · 5.13 KB
/
deps_pro-ha.yml
File metadata and controls
191 lines (176 loc) · 5.13 KB
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
services:
bundle-server:
profiles: ["all", "master-datacenter"]
container_name: bundle-server
build:
context: ./bundle-server
ports:
- "8000:8000"
federation-server:
profiles: ["all", "master-datacenter"]
container_name: federation
image: agatawitkowska/federation-example
ports:
- "4000:4000"
- "4001:4001"
- "4002:4002"
- "4003:4003"
openldap:
profiles: ["all", "master-datacenter"]
container_name: openldap
image: osixia/openldap:1.5.0
ports:
- "389:389"
- "636:636"
environment:
- LDAP_READONLY_USER=true
- LDAP_READONLY_USER_USERNAME=read-only-admin
- LDAP_READONLY_USER_PASSWORD=password
graphql-faker:
profiles: ["all", "master-datacenter"]
container_name: graphql-faker
image: apisguru/graphql-faker:latest
volumes:
- ./faker-schema.graphql:/workdir/faker-schema.graphql
command: "faker-schema.graphql"
ports:
- "9002:9002"
upstream:
profiles: ["all", "master-datacenter"]
container_name: httpbin.org
image: kennethreitz/httpbin
restart: always
restcountries:
profiles: ["all", "master-datacenter"]
container_name: restcountries
image: bigpapoo/restcountries:1.0
trevorblades:
profiles: ["all", "master-datacenter"]
container_name: trevorblades
image: mangomm/trevorblades-countries
webhook:
profiles: ["all", "master-datacenter"]
container_name: webhook-server
build:
context: ./webhook-server
ports:
- "9003:9003"
nginx:
profiles: ["all", "master-datacenter"]
container_name: nginx
image: nginx:latest
ports:
- "7000:80"
- "7443:443"
volumes:
- ./confs/nginx.conf:/etc/nginx/nginx.conf
- ./certs/nginx.crt:/etc/nginx/ssl/nginx.crt
- ./certs/nginx.key:/etc/nginx/ssl/nginx.key
depends_on:
- upstream
kafka:
image: apache/kafka:3.8.0
container_name: kafka
ports:
- "9092:9092"
- "9093:9093"
- "9094:9094"
environment:
KAFKA_PROCESS_ROLES: broker,controller
KAFKA_NODE_ID: 1
KAFKA_CONTROLLER_QUORUM_VOTERS: 1@localhost:9093
KAFKA_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093,EXTERNAL://:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,EXTERNAL://localhost:9094
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_METADATA_LOG_DIR: /var/lib/kafka/data
KAFKA_LOG_DIRS: /var/lib/kafka/data
rabbitmq:
profiles: ["all", "master-datacenter"]
container_name: rabbitmq
image: rabbitmq:4.1.0-management-alpine
ports:
- "5672:5672" # AMQP protocol
- "15672:15672" # Management UI
- "1883:1883"
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=admin
command: sh -c "rabbitmq-plugins enable --offline rabbitmq_mqtt && rabbitmq-server"
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 10s
timeout: 10s
retries: 3
grpc-server:
profiles: ["all", "master-datacenter"]
container_name: grpc-server
image: tykio/tyk-grpc-plugin:v1.0
ports:
- "9111:9111"
keycloak:
profiles: ["all", "master-datacenter"]
container_name: keycloak
image: quay.io/keycloak/keycloak:23.0
command: ["start-dev", "--import-realm", "--health-enabled=true"]
ports:
- "8180:8080"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
volumes:
- ./keycloak/mcp-test-realm.json:/opt/keycloak/data/import/mcp-test-realm.json:ro
healthcheck:
test:
[
"CMD-SHELL",
"exec 3<>/dev/tcp/localhost/8080 && echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\n\\r\\n' >&3 && cat <&3 | grep -q UP",
]
interval: 10s
timeout: 10s
retries: 15
start_period: 30s
mcp-server:
profiles: ["all", "master-datacenter"]
container_name: mcp-server
# Built from: https://github.com/TykTechnologies/tyk-mock-mcp-server
# Dockerfile: https://github.com/TykTechnologies/tyk-mock-mcp-server/blob/main/Dockerfile
image: 754489498669.dkr.ecr.eu-central-1.amazonaws.com/tyk-mock-mcp-server:main
ports:
- "7878:7878"
environment:
- PORT=7878
- DEBUG=false
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://localhost:7878/health",
]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
vault:
profiles: ["all", "master-datacenter"]
container_name: vault
image: hashicorp/vault:latest
ports:
- "8200:8200"
environment:
- VAULT_DEV_ROOT_TOKEN_ID=root
- VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200
cap_add:
- IPC_LOCK
upstream-auth-server:
profiles: ["all", "master-datacenter"]
container_name: upstream-auth-server
image: kennethreitz/httpbin
ports:
- "8090:80"