-
Notifications
You must be signed in to change notification settings - Fork 132
/
docker-compose.yml
128 lines (119 loc) · 2.89 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '3.4'
networks:
kong-net:
driver: bridge
keycloak-net:
volumes:
kong-datastore:
keycloak-datastore:
services:
kong-db:
image: postgres:11-alpine
volumes:
- kong-datastore:/var/lib/postgresql/data
networks:
- kong-net
ports:
- "15432:5432"
environment:
POSTGRES_DB: api-gw
POSTGRES_USER: kong
POSTGRES_PASSWORD: kong
kong:
build:
context: ./
image: kong-oidc:latest
depends_on:
- kong-db
networks:
- kong-net
ports:
- "8000:8000" # Listener
- "8001:8001" # Admin API
- "8443:8443" # Listener (SSL)
- "8444:8444" # Admin API (SSL)
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: kong-db
KONG_PG_PORT: 5432
KONG_PG_DATABASE: api-gw
KONG_PG_USER: kong
KONG_PG_PASSWORD: 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:8000, 0.0.0.0:8443 ssl
KONG_ADMIN_LISTEN: 0.0.0.0:8001, 0.0.0.0:8444 ssl
KONG_PLUGINS: bundled,oidc
KONG_LOG_LEVEL: debug
konga:
image: pantsel/konga:0.14.9
depends_on:
- kong
networks:
- kong-net
ports:
- "1337:1337" # konga
environment:
DB_ADAPTER: postgres
DB_HOST: kong-db
DB_PORT: '5432'
DB_USER: kong
DB_PASSWORD: kong
DB_DATABASE: api-gw
NODE_ENV: development
keycloak-db:
image: postgres:14-alpine
volumes:
- keycloak-datastore:/var/lib/postgresql/data
networks:
- keycloak-net
ports:
- "25432:5432"
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:20.0.1
depends_on:
- keycloak-db
command: start-dev
networks:
- keycloak-net
ports:
- "8180:8080"
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloak-db/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_METRICS_ENABLED: 1
prometheus:
image: prom/prometheus
depends_on:
- kong
container_name: prometheus
networks:
- kong-net
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus"
ports:
- 9090:9090
grafana:
image: grafana/grafana
depends_on:
- prometheus
container_name: grafana
networks:
- kong-net
restart: always
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning
ports:
- 3000:3000