-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 889 Bytes
/
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
services:
postgres:
image: postgres:14
environment:
POSTGRES_DB: kong
POSTGRES_USER: kong_user
POSTGRES_PASSWORD: kong_password
ports:
- 54324:5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U kong_user -d kong" ]
interval: 5s
timeout: 5s
retries: 5
kong-bootstrap:
build:
context: .
env_file: .env
command: [ "kong", "migrations", "bootstrap" ]
depends_on:
postgres:
condition: service_healthy
kong-migrate:
build:
context: .
env_file: .env
command: [ "kong", "migrations", "up" ]
depends_on:
kong-bootstrap:
condition: service_completed_successfully
kong:
build:
context: .
ports:
- 8000:8000
- 8001:8001
depends_on:
kong-migrate:
condition: service_completed_successfully
env_file: .env