File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,20 +9,39 @@ services:
99 - 8090:8080
1010 command : tail -f /dev/null
1111
12- kong-database :
13- image : cassandra:3
12+ postgres :
13+ image : postgres:13
14+ container_name : kong-database
15+ restart : always
16+ environment :
17+ POSTGRES_USER : kong
18+ POSTGRES_PASSWORD : kong
19+ POSTGRES_DB : kong
1420 ports :
15- - 9042:9042
21+ - 5432:5432
22+ volumes :
23+ - postgres_data:/var/lib/postgresql/data
24+
25+ kong-migrations :
26+ image : kong
27+ depends_on :
28+ - postgres
29+ environment :
30+ KONG_DATABASE : postgres
31+ KONG_PG_HOST : kong-database
32+ KONG_PG_USER : kong
33+ KONG_PG_PASSWORD : kong
34+ command : kong migrations bootstrap
1635
1736 kong :
1837 image : kong
1938 depends_on :
20- - kong-database
39+ - kong-migrations
2140 environment :
22- KONG_DATABASE : cassandra
41+ KONG_DATABASE : postgres
2342 KONG_PG_HOST : kong-database
43+ KONG_PG_USER : kong
2444 KONG_PG_PASSWORD : kong
25- KONG_CASSANDRA_CONTACT_POINTS : kong-database
2645 KONG_PROXY_ACCESS_LOG : /dev/stdout
2746 KONG_ADMIN_ACCESS_LOG : /dev/stdout
2847 KONG_PROXY_ERROR_LOG : /dev/stderr
@@ -34,4 +53,5 @@ services:
3453 - 8001:8001
3554 - 8444:8444
3655
37-
56+ volumes :
57+ postgres_data:
You can’t perform that action at this time.
0 commit comments