-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (58 loc) · 1.52 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
version: '3'
services:
postgres:
image: postgres:9.6.8-alpine
container_name: kongadm-local-postgres-9.6.8
ports:
- 5432:5432
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: supersecret
POSTGRES_DB: kongadm
kong_migrations:
image: kong:0.13.1-centos # can't use alpine with the wait-for-it script
volumes:
- ./scripts/wait-for-it.sh:/wait-for-it.sh
entrypoint:
- /wait-for-it.sh
- --host=postgres
- --port=5432
- --
command:
- kong
- migrations
- up
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_USER: root
KONG_PG_DATABASE: kongadm
KONG_PG_PASSWORD: supersecret
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stdout
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stdout
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_ADMIN_LISTEN_SSL: 0.0.0.0:8444
depends_on:
- postgres
kong:
image: kong:latest
restart: on-failure
environment:
KONG_DATABASE: postgres
KONG_PG_HOST: postgres
KONG_PG_USER: root
KONG_PG_PASSWORD: supersecret
KONG_PG_DATABASE: kongadm
KONG_PROXY_ACCESS_LOG: /dev/stdout
KONG_PROXY_ERROR_LOG: /dev/stdout
KONG_ADMIN_ACCESS_LOG: /dev/stdout
KONG_ADMIN_ERROR_LOG: /dev/stdout
KONG_ADMIN_LISTEN: 0.0.0.0:8001
KONG_ADMIN_LISTEN_SSL: 0.0.0.0:8444
ports:
- 8000:8000
- 8443:8443
- 8001:8001
- 8444:8444