-
Notifications
You must be signed in to change notification settings - Fork 3
/
local.docker-compose.yml
144 lines (140 loc) · 4.37 KB
/
local.docker-compose.yml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '3.8'
services:
deso:
# image: docker.io/desoprotocol/backend-dev:451a0a65e27da4ad68cb0705c63b1c964a1ce011
build:
context: ..
dockerfile: backend/Dockerfile
environment:
- ADD_IPS=localhost:19000
- PRIVATE_MODE=true
- RUN_HOT_FEED_ROUTINE=false
- API_PORT=18001
- PROTOCOL_PORT=18000
- TXINDEX=true
- DATA_DIR=/pd/n0_00001
- ACCESS_CONTROL_ALLOW_ORIGINS=*
- SECURE_HEADER_ALLOW_HOSTS=localhost:4200
- SECURE_HEADER_DEVELOPMENT=true
- BLOCK_CYPHER_API_KEY=092dae962ea44b02809a4c74408b42a1
- MIN_SATOSHIS_FOR_PROFILE=0
- EXPOSE_GLOBAL_STATE=false
- SHOW_PROCESSING_SPINNERS=true
- COMP_PROFILE_CREATION=false
# Hypersync Settings:
# - SYNC_TYPE=hypersync
# - HYPERSYNC=true
# Blocksync Settings:
- SYNC_TYPE=blocksync
- HYPERSYNC=false
# Mainnet Settings:
# - REGTEST=false
# - TESTNET=false
# - CONNECT_IPS=35.232.92.5:17000
# - STATE_CHANGE_DIR=/ss/state-changes
# Testnet Settings:
- REGTEST=false
- TESTNET=true
- CONNECT_IPS=35.192.117.201:18000
- STATE_CHANGE_DIR=/ss/state-changes
- TRUSTED_BLOCK_PRODUCER_PUBLIC_KEYS=
- TRUSTED_BLOCK_PRODUCER_START_HEIGHT=10000000
# Regtest Settings:
# - REGTEST=true
# - TESTNET=true
# - STATE_CHANGE_DIR=/ss/state-changes
# - ADMIN_PUBLIC_KEYS=*
# - SUPER_ADMIN_PUBLIC_KEYS=*
# - NUM_MINING_THREADS=1
# - MINER_PUBLIC_KEYS=BC1YLg7Bk5sq9iNY17bAwoAYiChLYpmWEi6nY6q5gnA1UQV6xixHjfV
# - BLOCK_PRODUCER_SEED=essence camp ghost remove document vault ladder swim pupil index apart ring
# - STARTER_DESO_SEED=road congress client market couple bid risk escape artwork rookie artwork food
ports:
- '18000:18000'
- '18001:18001'
- '19000:19000'
volumes:
- pd_volume:/pd
# - /tmp/state-change-files:/ss
- ss_volume:/ss
healthcheck:
test: [ "CMD-SHELL", "wget --quiet --tries=1 --spider http://deso:18001/api/v0/health-check || exit 1" ]
interval: 30s
timeout: 10s
retries: 20
start_period: 10s
command: ["run"]
pdh:
# image: docker.io/desoprotocol/postgres-data-handler:c2ff0e2921911d2581685e1794a1324724997c64
build:
context: ..
dockerfile: postgres-data-handler/Dockerfile
environment:
- DB_HOST=db-ss
- DB_NAME=postgres
- DB_PASSWORD=postgres
- DB_PORT=5432
- DB_USERNAME=postgres
- READONLY_USER_PASSWORD=postgres
- STATE_CHANGE_DIR=/ss/state-changes
- CONSUMER_PROGRESS_DIR=/ss/consumer-progress
- BATCH_BYTES=500000
- THREAD_LIMIT=10
- CALCULATE_EXPLORER_STATISTICS=false
- LOG_QUERIES=false
# Mainnet Settings:
# - IS_TESTNET=false
# Testnet Settings:
- IS_TESTNET=true
command: ["run"]
volumes:
- ss_volume:/ss
depends_on:
db-ss:
condition: service_healthy
# gql:
# image: docker.io/desoprotocol/graphql-api:4255d8c3c5be7911ed7817ef7b1baf979a6d3818
# environment:
# - DB_HOST=db-ss
# - DB_NAME=postgres
# - DB_PASSWORD=postgres
# - DB_PORT=5432
# - DB_USERNAME=postgres
# - DB_OWNER_USERNAME=postgres
# - DB_OWNER_PASSWORD=postgres
# - READONLY_USER_PASSWORD=postgres
# - LOG_SQL=true
# - DESO_NODE_URI=http://deso:18001
# ports:
# - '4000:4000'
# depends_on:
# db-ss:
# condition: service_healthy
# healthcheck:
# test: [ "CMD-SHELL", "wget --quiet --tries=1 --spider --header='Content-Type: application/json' --post-data='{\"query\":\"query {__typename}\"}' http://gql:4000/graphql || exit 1" ]
# interval: 10s
# timeout: 15s
# retries: 30
# start_period: 10s
db-ss:
image: postgres:14
# restart: always
environment:
- PGUSER=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- POSTGRES_LOG_STATEMENTS=all
ports:
- '5430:5432'
volumes:
- db_ss_volume:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 100
volumes:
db_ss_volume:
pd_volume:
ss_volume: