-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
167 lines (145 loc) · 3.81 KB
/
docker-compose.yaml
File metadata and controls
167 lines (145 loc) · 3.81 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
services:
elasticsearch:
container_name: elasticsearch
image: 'elasticsearch:8.2.2'
environment:
discovery.type: single-node
xpack.security.enabled: 'false'
xpack.security.http.ssl.enabled: 'false'
xpack.security.transport.ssl.enabled: 'false'
restart: always
kibana:
container_name: kibana
image: 'kibana:8.2.2'
environment:
ELASTICSEARCH_HOSTS: 'http://elasticsearch:9200'
ports:
- "5601:5601"
restart: always
depends_on:
- elasticsearch
keycloak:
container_name: keycloak
image: quay.io/keycloak/keycloak:18.0.0
command:
- start-dev
ports:
- "8080:8080"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
DB_ADDR: postgres
DB_USER: kong
DB_PASSWORD: kongpass
depends_on:
- postgres
postgres:
container_name: postgres
image: postgres:9.6
environment:
POSTGRES_USER: kong
POSTGRES_DB: kong
POSTGRES_PASSWORD: kongpass
healthcheck:
test: ["CMD", "pg_isready", "-U", "kong"]
interval: 5s
timeout: 5s
retries: 5
kong-bootstrap:
container_name: kong-bootstrap
image: kong/kong-gateway:2.8
command: "kong migrations bootstrap"
restart: on-failure
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: kongpass
KONG_PASSWORD: test
depends_on:
- postgres
kong-gateway:
container_name: kong-gateway
restart: always
image: kong/kong-gateway:2.8
ports:
#SECURE
- "8443:8443" #PROXY
- "8444:8444" #ADMIN
- "8445:8445" #GUI
# INSECURE
- "8000:8000" #PROXY
- "8001:8001" #ADMIN
- "8002:8002" #GUI
volumes:
- ./certs:/etc/ssl/certs
environment:
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_ADMIN_ERROR_LOG: /dev/stderr
KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: kongpass
KONG_PASSWORD: test
KONG_ADMIN_GUI_URL: http://localhost:8002
KONG_SSL_CERT: /etc/ssl/certs/localhost.crt
KONG_SSL_CERT_KEY: /etc/ssl/certs/localhost.key
KONG_ADMIN_SSL_CERT: /etc/ssl/certs/localhost.crt
KONG_ADMIN_SSL_CERT_KEY: /etc/ssl/certs/localhost.key
KONG_ADMIN_GUI_SSL_CERT: /etc/ssl/certs/localhost.crt
KONG_ADMIN_GUI_SSL_CERT_KEY: /etc/ssl/certs/localhost.key
depends_on:
- postgres
- kong-bootstrap
prometheus:
container_name: prometheus
restart: always
image: prom/prometheus
volumes:
- ${PWD}/docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
container_name: grafana
restart: always
image: grafana/grafana-oss
ports:
- "3080:3000"
zipkin:
container_name: zipkin
restart: always
image: openzipkin/zipkin
ports:
- "9411:9411"
cors-test:
container_name: corstest
build: ./docker/front
ports:
- "4000:4000"
mongo:
image: mongo
container_name: mongo
restart: unless-stopped
rabbitmq:
container_name: rabbitmq
restart: unless-stopped
build: ./docker/rabbitmq
rabbitmq-create-queues:
container_name: rabbitmq-create-queues
build: ./docker/create-queues
depends_on:
- rabbitmq
awesomeshop-orders-api:
container_name: awesomeshop-orders-api
image: ghcr.io/patrickreinan/awesomeshop-orders-api:latest
restart: always
environment:
- MONGO__Database=order-service
- MONGO__ConnectionString=mongodb://mongo:27017
- RABBITMQ__Hostname=rabbitmq
ports:
- 8070:80
depends_on:
- rabbitmq-create-queues
networks:
default:
name: kong-wks