This repository has been archived by the owner on Oct 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
95 lines (86 loc) · 2.52 KB
/
docker-compose.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
88
89
90
91
92
93
94
95
version: '3.7'
services:
redis:
image: redis:5-alpine@sha256:ed670ae81585e6bc3d4847fde5de862ac711cdd9e4c3b5fc3acc9f72c4ce5030
ports:
- "6379:6379"
mongo:
image: mongo:3.6.9-stretch@sha256:c93e92e4b70d9ec78f1253a7f3f5df1ff074d04aa3d545a73ed508e74962ffaf
ports:
- "27017:27017"
rabbitmq:
image: rabbitmq:3.9.15-management-alpine@sha256:c2bdbe854a1398dbe5295f149a577a46ebd79cba93d4c14710f74b19b26b3a39
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_VHOST: db
postgres:
image: postgres:12.10-alpine@sha256:cda55baf3fddc0718a6ccc84d2e5c6d2ea5f3b29d5b5b801a546631163201d49
ports:
- "5432:5432"
environment:
LC_ALL: C.UTF-8
POSTGRES_USER: admin
POSTGRES_PASSWORD: postgres
POSTGRES_DB: db
postgres-kong:
image: postgres:12.10@sha256:dccefcef098597b666c0a7012ffdb0187a84fd48868c1165cb72d031f0e36e7c
environment:
POSTGRES_USER: kong
POSTGRES_DB: kong
POSTGRES_PASSWORD: secret
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
kong-migration:
image: kong:2.3.3@sha256:0c530f22b7ac433f3934af9b1fa62abd5c3210db6f84dcdd7616abc6872a92a3
depends_on:
- postgres-kong
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=postgres-kong
- KONG_PG_PASSWORD=secret
command: kong migrations bootstrap && kong migrations up
restart: on-failure
kong:
image: kong:2.3.3@sha256:0c530f22b7ac433f3934af9b1fa62abd5c3210db6f84dcdd7616abc6872a92a3
depends_on:
- postgres-kong
- kong-migration
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=postgres-kong
- KONG_PG_PASSWORD=secret
- KONG_PG_DATABASE=kong
- KONG_PROXY_ACCESS_LOG=/dev/stdout
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_LISTEN=0.0.0.0:8001
ports:
- "80:8000"
- "443:8443"
- "8001:8001"
restart: on-failure
healthcheck:
test: ["CMD-SHELL", "curl -I -s -L http://127.0.0.1:8000 || exit 1"]
interval: 5s
retries: 10
kong-ui:
image: pantsel/konga@sha256:c8172b75607d06d83d917387a2f4d95b9b855f64063ee60db8e6f1a1c97b8abf
depends_on:
- postgres-kong
- kong
environment:
- DB_ADAPTER=postgres
- DB_URI=postgres://admin:postgres@postgres/kong_ui
- HOST=0.0.0.0
- NODE_ENV=development
- NO_AUTH=true
- PORT=8000
ports:
- "8002:8000"
networks:
default:
name: cloudbuild