File tree 1 file changed +18
-8
lines changed
1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 1
1
version : ' 2'
2
2
3
3
services :
4
- cassandra :
5
- image : cassandra:3
6
- container_name : cassandra-database
4
+ postgres :
5
+ image : postgres:9.4
6
+ environment :
7
+ - " POSTGRES_USER=kong"
8
+ - " POSTGRES_DB=kong"
9
+ container_name : postgres-db
7
10
8
11
kong :
9
12
image : kong:0.10.3
10
- # Cassandra takes a while to initialize so Kong will error out, ensure it restarts so that when Cassandra is ready
11
- # then Kong will also be up and ready to take requests
13
+ # The database takes a while to initialize so Kong will error out, ensure it restarts so that when the database is
14
+ # ready then Kong will also be up and ready to take requests
12
15
restart : always
13
16
container_name : kong-api-gateway
14
17
# make use of the container-name DNS to reference the database
15
18
environment :
16
- - " KONG_DATABASE=cassandra "
17
- - " KONG_CASSANDRA_CONTACT_POINTS=cassandra-database "
19
+ - " KONG_DATABASE=postgres "
20
+ - " KONG_PG_HOST=postgres-db "
18
21
ports :
19
22
- " 8000:8000"
20
23
- " 8443:8443"
21
24
- " 8001:8001"
22
25
- " 7946:7946"
23
26
- " 7946:7946/udp"
24
27
depends_on :
25
- - " cassandra"
28
+ - " postgres"
29
+
30
+ kong-dashboard :
31
+ image : pgbi/kong-dashboard:latest
32
+ ports :
33
+ - " 8080:8080"
34
+ depends_on :
35
+ - " kong"
You can’t perform that action at this time.
0 commit comments