-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
101 lines (94 loc) · 2.42 KB
/
docker-compose.yml
File metadata and controls
101 lines (94 loc) · 2.42 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
explorer:
build:
context: https://github.com/UniqueNetwork/unique-template.git#explorer
dockerfile: Dockerfile
platform: linux/amd64
restart: unless-stopped
depends_on:
- scan-api
- http-proxy
ports:
- 3002:3002
environment:
- NEXT_PUBLIC_REST_URL=http://localhost:3000
- NEXT_PUBLIC_INDEXER_URL=http://localhost:3001
scan-crawler:
image: uniquenetwork/substrate-proxy-scan-crawler:master
platform: linux/amd64
restart: unless-stopped
depends_on:
- postgres
- chain
environment:
- DB_URL=postgres://db_user:db_password@postgres:5432/scan_db
- CHAIN=ws://chain:9833
scan-api:
image: uniquenetwork/substrate-proxy-scan-api:master
platform: linux/amd64
restart: unless-stopped
depends_on:
- postgres
ports:
- 3001:3001
environment:
- DB_URL=postgres://db_user:db_password@postgres:5432/scan_db
- PORT=3001
- OPENAPI_SERVER_URL=http://localhost:3001/
- OPENAPI_SERVER_DESCRIPTION="This server"
- OPENAPI_SERVER_PUBLIC_PATH=/
http-proxy:
image: uniquenetwork/substrate-proxy-http-proxy:master
platform: linux/amd64
restart: unless-stopped
depends_on:
- chain
ports:
- 3000:3000
environment:
- PORT=3000
- CHAIN=ws://chain:9833
- MIN_LOG_LEVEL=info
- EXTRINSIC_MORTAL_BLOCK_LENGTH=64
- OPENAPI_SERVER_URL=http://localhost:3000/
- OPENAPI_SERVER_DESCRIPTION="This server"
- OPENAPI_SERVER_PUBLIC_PATH=/
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: db_user
POSTGRES_PASSWORD: db_password
POSTGRES_DB: scan_db
ports:
- "5432:5432"
volumes:
- scan-postgres:/var/lib/postgresql/data
chain:
image: uniquenetwork/unique-node-public:latest
platform: linux/amd64
restart: unless-stopped
command: >
--dev
--idle-autoseal-interval 2000
--disable-autoseal-on-tx
--autoseal-finalization-delay 1
--state-pruning archive
--blocks-pruning archive
--base-path /unique/data
--port 30333
--rpc-port 9833
--no-prometheus
--no-mdns
--no-telemetry
--unsafe-rpc-external
--rpc-cors=all
ports:
- 9833:9833
- 40333:40333
- 30333:30333
volumes:
- chain-data:/chain/data
volumes:
chain-data:
scan-postgres: