-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.4 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
version: "2.1"
services:
kong-database:
# image: healthcheck/postgres:alpine
image: postgres:9.4-alpine
ports: ["5432:5432"]
environment:
POSTGRES_USER: kong
POSTGRES_DB: kong
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
networks: [backing-services]
kong-migration:
depends_on:
kong-database:
condition: service_healthy
image: kong:latest
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: kong-database
KONG_CASSANDRA_CONTACT_POINTS: kong-database
command: kong migrations -v up
networks: [backing-services]
kong:
depends_on:
kong-database:
condition: service_healthy
kong-migration:
condition: service_started
image: kong:latest
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: kong-database
KONG_PG_DATABASE: kong
ports:
- "8000:8000"
- "8001:8001"
- "8443:8443"
- "8444:8444"
healthcheck:
test: ["CMD-SHELL", "curl -I -s -L http://127.0.0.1:8000 || exit 1"]
interval: 5s
retries: 10
networks: [backing-services]
dashboard:
depends_on:
kong:
condition: service_healthy
image: pgbi/kong-dashboard:v2
ports: ["8080:8080"]
networks:
- backing-services
- public
networks:
backing-services:
public: