-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
75 lines (70 loc) · 1.7 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
version: '2.1'
services:
kong-database:
image: postgres:9.4
environment:
POSTGRES_USER: kong
POSTGRES_PASSWORD: kong_password
POSTGRES_DB: kong
volumes:
- ./pgdata:/var/lib/postgresql/data:z
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
timeout: 30s
interval: 30s
retries: 3
kong-data-migration:
image: kong:0.11
links:
- kong-database
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: kong-database
KONG_PG_USERNAME: kong
KONG_PG_PASSWORD: kong_password
KONG_CASSANDRA_CONTACT_POINTS: kong-database
command: kong migrations up --vv
depends_on:
kong-database:
condition: service_healthy
kong:
image: kong:0.11
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: kong-database
KONG_PG_USERNAME: kong
KONG_PG_PASSWORD: kong_password
KONG_CASSANDRA_CONTACT_POINTS: kong-database
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
KONG_ADMIN_LISTEN_SSL: 0.0.0.0:8444
restart: on-failure
links:
- kong-database
ports:
- 8000:8000
- 8443:8443
- 8001:8001
- 8444:8444
depends_on:
kong-database:
condition: service_healthy
kong-data-migration:
condition: service_started
kong-konga-dashboard:
image: pantsel/konga
environment:
NODE_ENV: development
links:
- kong
ports:
- 1337:1337
test-api:
build:
context: test-api
command: python app.py
ports:
- 8081:8080