-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (79 loc) · 1.71 KB
/
docker-compose.yml
File metadata and controls
83 lines (79 loc) · 1.71 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
78
79
80
81
82
83
version: "3.5"
services:
kong-database:
image: postgres:9.5
container_name: kong-database
environment:
POSTGRES_DB: kong
POSTGRES_USER: kong
POSTGRES_PASSWORD: ${KONG_PW}
networks:
- kong
healthcheck:
test: ["CMD", "pg_isready", "-U", "kong"]
interval: 5s
timeout: 5s
retries: 5
kong-migration:
image: kong:latest
command: "kong migrations up"
restart: on-failure
environment:
KONG_PG_HOST: kong-database
KONG_PG_PASSWORD: ${KONG_PW}
networks:
- kong
links:
- kong-database
depends_on:
- kong-database
kong:
image: kong:latest
restart: always
depends_on:
- kong-migration
- kong-database
ports:
- 10010:8000
- 8443:8443
- 8001:8001
networks:
- kong
- api
environment:
- KONG_ADMIN_LISTEN=0.0.0.0:8001
- KONG_DATABASE=postgres
- KONG_PG_HOST=kong-database
- KONG_PG_PASSWORD=${KONG_PW}
- KONG_PG_SSL=true
- KONG_PG_SSL_VERIFY=true
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001"]
interval: 5s
timeout: 2s
retries: 15
simplelight-api-1:
image: thomastopies/simplelight:${API_TAG}
expose:
- 10010
networks:
- api
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:10010/health"]
interval: 5s
timeout: 2s
retries: 15
simplelight-api-2:
image: thomastopies/simplelight:${API_TAG}
expose:
- 10010
networks:
- api
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:10010/health"]
interval: 5s
timeout: 2s
retries: 15
networks:
kong:
api: