-
Notifications
You must be signed in to change notification settings - Fork 41
/
kong-start.sh
executable file
·55 lines (31 loc) · 1.02 KB
/
kong-start.sh
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
#!/bin/bash
echo "Starting Graylog..."
docker-compose up -d graylog elasticsearch mongo
echo "Graylog running http://127.0.0.1:9000/"
echo "Starting kong-database..."
#docker volume rm $(docker volume ls -q)
docker-compose up -d kong-database
STATUS="starting"
while [ "$STATUS" != "healthy" ]
do
STATUS=$(docker inspect --format {{.State.Health.Status}} kong-database)
echo "kong-database state = $STATUS"
sleep 5
done
echo "Run database migrations..."
docker-compose up migrations
echo "Starting kong..."
docker-compose up -d kong
echo "Kong admin running http://0.0.0.0:8001/"
echo "Kong proxy running http://0.0.0.0:8000/"
echo "Starting konga..."
docker-compose up -d konga
echo "Konga running http://0.0.0.0:1337/"
docker-compose up -d grafana
echo "Grafana running http://0.0.0.0:3000/"
echo "Starting prometheus..."
docker-compose up -d prometheus node_exporter
echo "Prometheus running http://0.0.0.0:9090/"
echo "Starting API & DB..."
docker-compose up -d db api
echo "API on http://0.0.0.0:5000/"