Skip to content

Commit e82bb43

Browse files
authored
Merge pull request #191 from UniqueNetwork/feat/add-docker-compose-deps
Enhance Docker Compose configuration by adding restart policies and d…
2 parents 8cad833 + c85b83a commit e82bb43

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/build/sdk/v2/environment.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,19 @@ services:
3636
3737
scan-crawler:
3838
image: uniquenetwork/substrate-proxy-scan-crawler:master
39+
restart: unless-stopped
40+
depends_on:
41+
- postgres
42+
- chain
3943
environment:
4044
- DB_URL=postgres://db_user:db_password@postgres:5432/scan_db
4145
- CHAIN=ws://chain:9833
4246
4347
scan-api:
4448
image: uniquenetwork/substrate-proxy-scan-api:master
49+
restart: unless-stopped
50+
depends_on:
51+
- postgres
4552
ports:
4653
- 3001:3001
4754
environment:
@@ -53,6 +60,9 @@ services:
5360
5461
http-proxy:
5562
image: uniquenetwork/substrate-proxy-http-proxy:master
63+
restart: unless-stopped
64+
depends_on:
65+
- chain
5666
ports:
5767
- 3000:3000
5868
environment:
@@ -66,6 +76,7 @@ services:
6676
6777
postgres:
6878
image: postgres:17
79+
restart: unless-stopped
6980
environment:
7081
POSTGRES_USER: db_user
7182
POSTGRES_PASSWORD: db_password
@@ -77,6 +88,7 @@ services:
7788
7889
chain:
7990
image: uniquenetwork/unique-node-public:latest
91+
restart: unless-stopped
8092
command: >
8193
--dev
8294
--idle-autoseal-interval 2000

0 commit comments

Comments
 (0)