-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (71 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
77 lines (71 loc) · 1.73 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
kong-database:
container_name: kong-database
image: postgres:9.5
environment:
- POSTGRES_USER=kong
- POSTGRES_DB=kong
ports:
- "5432:5432"
kong-migrations:
image: kong:latest
command: kong migrations bootstrap
environment:
KONG_DATABASE: "postgres"
KONG_PG_HOST: "kong-database"
KONG_CASSANDRA_CONTACT_POINTS: "kong-database"
depends_on:
- kong-database
links:
- kong-database
restart: on-failure
kong:
image: kong:latest
container_name: kong
environment:
KONG_DATABASE: "postgres"
KONG_PG_HOST: "kong-database"
KONG_CASSANDRA_CONTACT_POINTS: "kong-database"
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_ADMIN_LISTEN: "0.0.0.0:8001, 0.0.0.0:8444 ssl"
ports:
- "8000:8000"
- "8443:8443"
- "8001:8001"
- "8444:8444"
depends_on:
- kong-database
restart: on-failure
konga:
image: pantsel/konga
container_name: konga
environment:
NODE_ENV: "production"
TOKEN_SECRET: RYgSgW1I6rRScsSBJswX/zZ3oYlRYptss3/ernpi2gTDPjvO0Zaep6v5Fv0ctfRCL0yOdbCUojvt3X7PwTrKqg==
ports:
- "1337:1337"
depends_on:
- kong
discovery:
container_name: discovery
build:
context: ./depends/discovery
ports:
- "7171:7171"
register-center:
container_name: register-center
build:
context: .
ports:
- "9093:9000"
environment:
DISCOVERY_ADDR: "discovery:7171"
KONG_ADMIN_ADDR: "http://kong:8001"
depends_on:
- discovery
- kong
restart: on-failure