-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (50 loc) · 1.25 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
version: '3.9'
services:
vault:
image: hashicorp/vault:latest
container_name: vault
ports:
- 8200:8200
environment:
- VAULT_DEV_ROOT_TOKEN_ID=${VAULT_DEV_ROOT_TOKEN_ID}
cap_add:
- IPC_LOCK
env_file:
- .env
postgres:
image: postgres:13.9
container_name: postgres
command: -c max_connections=5000
env_file:
- .env
environment:
POSTGRES_USER: kong
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: kong
kong:
image: kong/kong-gateway:3.4
container_name: kong-gateway
command: sh -c "kong migrations bootstrap && kong start"
ports:
- "8000:8000"
- "8001:8001"
- "8002:8002"
env_file:
- .env
environment:
KONG_DATABASE: postgres
KONG_LOG_LEVEL: debug
KONG_PG_HOST: postgres
KONG_PG_PASSWORD: ${POSTGRES_PASSWORD}
KONG_PG_USER: kong
KONG_PROXY_ERROR_LOG: /dev/stderr
KONG_ADMIN_GUI_URL: http://localhost:8002
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_TRACING_INSTRUMENTATIONS: all
KONG_TRACING_SAMPLING_RATE: 1.0
KONG_ROUTER_FLAVOR: expressions
KONG_VAULTS: bundled
VAULT_PLUGIN_TOKEN: ${VAULT_DEV_ROOT_TOKEN_ID}
restart: always
depends_on:
- postgres