File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
psql -v ON_ERROR_STOP=1 --username " $POSTGRES_USER " --dbname " $POSTGRES_DB " << -EOSQL
5
+ CREATE EXTENSION IF NOT EXISTS btree_gist;
5
6
SELECT 'CREATE DATABASE rest'
6
7
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'rest')\gexec
7
8
EOSQL
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ services:
16
16
command : [ '--alice --chain dev' ]
17
17
healthcheck :
18
18
test : " timeout 5 bash -c 'cat < /dev/null > /dev/tcp/localhost/9933' && exit 0 || exit 1"
19
- interval : 10s
19
+ interval : 5s
20
20
timeout : 5s
21
- retries : 10
21
+ retries : 20
22
22
start_period : 10s
23
23
24
24
subquery :
@@ -27,7 +27,10 @@ services:
27
27
init : true
28
28
restart : unless-stopped
29
29
depends_on :
30
- - ' postgres'
30
+ postgres :
31
+ condition : service_started
32
+ chain :
33
+ condition : service_healthy
31
34
environment :
32
35
START_BLOCK : 1
33
36
NETWORK_ENDPOINT : ws://chain:9944
@@ -44,13 +47,13 @@ services:
44
47
- --local
45
48
healthcheck :
46
49
test : curl --fail http://localhost:3000/meta || exit 1
47
- interval : 20s
48
- retries : 10
50
+ interval : 10s
51
+ retries : 20
49
52
start_period : 20s
50
53
timeout : 10s
51
54
52
55
graphql :
53
- image : onfinality/subql-query:v1.0 .0
56
+ image : onfinality/subql-query:v2.13 .0
54
57
restart : unless-stopped
55
58
ports :
56
59
- ${SQ_PORT:-3001}:3000
@@ -95,9 +98,9 @@ services:
95
98
POSTGRES_PASSWORD : $REST_POSTGRES_PASSWORD
96
99
healthcheck :
97
100
test : [ 'CMD-SHELL', 'pg_isready -U postgres' ]
98
- interval : 5s
99
- timeout : 5s
100
- retries : 5
101
+ interval : 3s
102
+ timeout : 3s
103
+ retries : 10
101
104
102
105
volumes :
103
106
db-data :
You can’t perform that action at this time.
0 commit comments