forked from cryptape/ckb-analyzer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
58 lines (54 loc) · 1.6 KB
/
docker-compose.yaml
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
version: '3'
# TODO: all healthycheck on ckb-mainnet and ckb-testnet, then do healthcheck before starting ckb-analyzer
services:
postgresql:
container_name: ckb-analyzer-postgresql
build: ./sql
environment:
- POSTGRES_DB=ckb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
#- DOWNLOAD_PROXY= #socks5://192.168.10.10:1080 # You can set proxy if you have trouble downloading files from Github
ports:
- "5432:5432"
volumes:
- "./data/postgresql/var/lib/postgresql/data:/var/lib/postgresql/data"
healthcheck:
test: [ "CMD-SHELL", "POSTGRES_USER=postgres", "pg_isready -h 127.0.0.1 -p 5432" ]
interval: 10s
timeout: 5s
retries: 5
restart: always
ckb-analyzer:
container_name: ckb-analyzer-networks
depends_on: # Needs to start after db
postgresql:
condition: service_healthy
build: .
environment:
- IPINFO_IO_TOKEN= # Your ipinfo.io token here
volumes:
- "./ckb-analyzer.toml:/etc/ckb-analyzer/config.toml"
command:
- "/bin/ckb-analyzer"
- "--config"
- "/etc/ckb-analyzer/config.toml"
extra_hosts:
# use `host.docker.internal` as host DNS name
- "host.docker.internal:host-gateway"
restart: always
marci:
container_name: ckb-analyzer-marci
depends_on:
- ckb-analyzer
build: ./frontend/Marci
environment:
- MARCI_DEFAULT_TIMEOUT=43200
ports:
- "1800:1800"
command:
- "/app/marci/marci"
- "--db-url"
- "postgresql://postgres:postgres@postgresql/ckb"
- "--bind"
- "0.0.0.0:1800"