-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
112 lines (110 loc) · 3.12 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3"
networks:
int-net:
driver: bridge
services:
bookings:
image: postgres:11.7-alpine
networks:
- int-net
container_name: bookings
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 5433:5432
volumes:
- ./db/10_init.sql:/docker-entrypoint-initdb.d/10_init.sql
- ./postgres-bookings:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 90s
timeout: 5s
retries: 5
booking-integration-service:
build: .
depends_on:
- bookings
ports:
- 8484:8484
- 9988:9988
networks:
- int-net
container_name: booking-integration-service
kong-db:
image: postgres:9.6
restart: always
networks:
- int-net
container_name: kong-db
environment:
- POSTGRES_USER=kong
- POSTGRES_PASSWORD=kong
- POSTGRES_DB=kong
volumes:
- ./postgres-kong:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
kong-migration:
image: kong-docker-kong-enterprise-edition-docker.bintray.io/kong-enterprise-edition:latest
command: kong migrations bootstrap
restart: on-failure
networks:
- int-net
container_name: kong-migration
environment:
- KONG_PG_HOST=kong-db
- KONG_PG_PASSWORD=kong
- KONG_DATABASE=postgres
- 'KONG_LICENSE_DATA=${KONG_LICENSE_DATA}'
- KONG_PASSWORD=${KONG_PASSWORD}
depends_on:
- kong-db
kong-enterprise:
image: kong-docker-kong-enterprise-edition-docker.bintray.io/kong-enterprise-edition:latest
depends_on:
- kong-migration
- kong-db
restart: always
networks:
- int-net
container_name: kong-enterprise
ports:
- 8000:8000
- 8001:8001
- 8002:8002
- 8003:8003
- 8004:8004
- 8005:8005
environment:
- KONG_ENFORCE_RBAC=on
- KONG_ADMIN_GUI_AUTH=basic-auth
- KONG_ADMIN_GUI_SESSION_CONF=${KONG_ADMIN_GUI_SESSION_CONF}
- KONG_AUDIT_LOG=on
- KONG_LOG_LEVEL=debug
- KONG_PORTAL_GUI_HOST=localhost:8003
- KONG_PORTAL_GUI_PROTOCOL=http
- KONG_PORTAL=on
- KONG_PORTAL_AUTH=basic-auth
- KONG_PORTAL_SESSION_CONF=${KONG_PORTAL_SESSION_CONF}
- KONG_ADMIN_GUI_URL=http://localhost:8002
- KONG_DATABASE=postgres
- KONG_PG_PASSWORD=kong
- KONG_PG_HOST=kong-db
- KONG_PG_DATABASE=kong
- KONG_CASSANDRA_CONTACT_POINTS=cassandra
- 'KONG_LICENSE_DATA=${KONG_LICENSE_DATA}'
- KONG_VITALS=on
- KONG_ANONYMOUS_REPORTS=off
- 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_PROXY_LISTEN=0.0.0.0:8000, 0.0.0.0:8443 ssl
- KONG_ADMIN_LISTEN=0.0.0.0:8001, 0.0.0.0:8444 ssl
- KONG_ADMIN_GUI_LISTEN=0.0.0.0:8002, 0.0.0.0:8445 ssl
- KONG_PORTAL_GUI_LISTEN=0.0.0.0:8003, 0.0.0.0:8446 ssl
- KONG_PORTAL_API_LISTEN=0.0.0.0:8004, 0.0.0.0:8447 ssl
- KONG_VITALS_STRATEGY=database