-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
90 lines (84 loc) · 2.05 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
services:
kong:
image: kong:${KONG_VERSION}
container_name: kong
expose:
- 8005
- 8006
- 8444
- 8443
environment:
KONG_DATABASE: "postgres"
KONG_PG_HOST: "kong_db"
KONG_PG_PORT: "5432"
KONG_PG_DATABASE: "kong"
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:8005, 0.0.0.0:8443 ssl"
KONG_ADMIN_LISTEN: "0.0.0.0:8006, 0.0.0.0:8444 ssl"
KONG_PLUGINS: "basic-auth, key-auth, rate-limiting, prometheus, proxy-cache, oauth2"
networks:
- webproxy
- default
depends_on:
- kong_db
- kong_migration
restart: unless-stopped
kong_db:
image: postgres:${KONG_DB_VERSION}
container_name: kong_db
volumes:
- kong_datastore:/var/lib/postgresql/data
environment:
POSTGRES_DB: "kong"
POSTGRES_USER: "kong"
POSTGRES_HOST_AUTH_METHOD: "trust"
restart: unless-stopped
kong_migration:
image: kong:${KONG_VERSION}
container_name: kong_migration
command: "kong migrations bootstrap"
environment:
KONG_PG_HOST: "kong_db"
depends_on:
- kong_db
restart: on-failure
konga:
image: pantsel/konga:${KONGA_VERSION}
container_name: konga
ports:
- 1337:1337
environment:
DB_ADAPTER: "postgres"
DB_HOST: "konga_db"
DB_USER: "konga"
DB_DATABASE: "konga"
NODE_ENV: "development"
networks:
- webproxy
- default
depends_on:
- konga_db
restart: unless-stopped
konga_db:
image: postgres:${KONGA_DB_VERSION}
container_name: konga_db
volumes:
- konga_database:/var/lib/postgresql/data
environment:
POSTGRES_DB: "konga"
POSTGRES_USER: "konga"
POSTGRES_HOST_AUTH_METHOD: "trust"
restart: unless-stopped
networks:
webproxy:
external:
name: webproxy
default:
external:
name: kong_network
volumes:
kong_datastore:
konga_database: