-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
102 lines (99 loc) · 2.76 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
version: '3.8'
networks:
kong-net:
driver: bridge
services:
kong-database:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
- POSTGRES_USER=${KONG_DB_USERNAME}
- POSTGRES_PASSWORD=${KONG_DB_PASSWORD}
- POSTGRES_DB=${KONG_DB_NAME}
networks:
- kong-net
kong-migrations:
image: kong:3.4
entrypoint: "kong migrations bootstrap"
environment:
- KONG_DATABASE=${KONG_DATABASE}
- KONG_PG_HOST=${KONG_DB_HOST}
- KONG_PG_DATABASE=${KONG_DB_NAME}
- KONG_PG_USER=${KONG_DB_USERNAME}
- KONG_PG_PASSWORD=${KONG_DB_PASSWORD}
restart: on-failure
links:
- kong-database
networks:
- kong-net
depends_on:
- kong-database
kong:
image: kong:3.4
environment:
- KONG_DATABASE=${KONG_DATABASE}
- KONG_PG_HOST=${KONG_DB_HOST}
- KONG_PG_DATABASE=${KONG_DB_NAME}
- KONG_PG_USER=${KONG_DB_USERNAME}
- KONG_PG_PASSWORD=${KONG_DB_PASSWORD}
- KONG_LOG_LEVEL=${KONG_LOG_LEVEL}
- KONG_PROXY_ACCESS_LOG=${KONG_PROXY_ACCESS_LOG}
- KONG_ADMIN_ACCESS_LOG=${KONG_ADMIN_ACCESS_LOG}
- KONG_PROXY_ERROR_LOG=${KONG_PROXY_ERROR_LOG}
- KONG_ADMIN_ERROR_LOG=${KONG_ADMIN_ERROR_LOG}
- KONG_ADMIN_LISTEN=${KONG_ADMIN_LISTEN}
- KONG_ADMIN_GUI_URL=${KONG_ADMIN_GUI_URL}
restart: always
links:
- kong-database
ports:
- ${KONG_PROXY_PORT}:${KONG_PROXY_PORT}
- ${KONG_PROXY_SSL_PORT}:${KONG_PROXY_SSL_PORT}
- ${KONG_PROXY_ADMIN_API_PORT}:${KONG_PROXY_ADMIN_API_PORT}
- ${KONG_PROXY_ADMIN_SSL_API_PORT}:${KONG_PROXY_ADMIN_SSL_API_PORT}
- ${KONG_MANAGER_PORT}:${KONG_MANAGER_PORT}
- ${KONG_MANAGER_SSL_PORT}:${KONG_MANAGER_SSL_PORT}
- ${KONG_3_PORT}:${KONG_3_PORT}
- ${KONG_4_PORT}:${KONG_4_PORT}
networks:
- kong-net
depends_on:
- kong-database
- kong-migrations
konga-prepare:
image: pantsel/konga:latest
command: "-c prepare -a postgres -u postgresql://kong:kong@kong-database:5432/konga"
restart: on-failure
links:
- kong-database
networks:
- kong-net
depends_on:
- kong-database
- kong-migrations
- kong
konga:
image: pantsel/konga:latest
environment:
- TOKEN_SECRET=${KONGA_TOKEN_SECRET}
- DB_ADAPTER=${KONG_DATABASE}
- DB_HOST=${KONG_DB_HOST}
- DB_PORT=${KONG_DB_PORT}
- DB_DATABASE=${KONGA_DB_NAME}
- DB_USER=${KONG_DB_USERNAME}
- DB_PASSWORD=${KONG_DB_PASSWORD}
- NODE_ENV=${KONGA_ENV}
restart: always
links:
- kong-database
ports:
- ${KONGA_PORT}:${KONGA_PORT}
networks:
- kong-net
depends_on:
- kong-database
- kong-migrations
- kong
- konga-prepare