-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.4 KB
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
version: '3.7'
services:
kong-database:
image: postgres:9.6
container_name: kong-database
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
volumes:
- ./pg_data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
migrations:
depends_on:
- kong-database
image: kong:latest
container_name: kong-migrations
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
command: kong migrations bootstrap -v
kong:
depends_on:
- kong-database
image: kong:latest
container_name: kong
restart: always
environment:
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- KONG_ADMIN_LISTEN=0.0.0.0:8001
- KONG_NGINX_HTTP_RESOLVER=8.8.8.8
- KONG_PROXY_ERROR_LOG=/dev/stderr
- KONG_ADMIN_ERROR_LOG=/dev/stderr
- KONG_TRUSTED_IPS=0.0.0.0/0,::/0
- KONG_REAL_IP_RECURSIVE=on
- KONG_PLUGINS=bundled,kong-plugin-redirect
- KONG_LUA_PACKAGE_PATH=/etc/kong/plugins/kong-plugin-redirect/?.lua;;
- KONG_LOG_LEVEL=debug
ports:
- 80:8000
- 8001:8001
- 443:8443
volumes:
- ./:/etc/kong/plugins/kong-plugin-redirect
konga:
image: pantsel/konga
container_name: konga
restart: always
ports:
- 1337:1337