mirror of
https://github.com/alexgo-io/stacks-node-mainnet.git
synced 2026-01-12 06:43:47 +08:00
chore: use postgres 17
This commit is contained in:
@@ -9,7 +9,7 @@ services:
|
|||||||
- "$PWD/config/envoy.yaml:/etc/envoy/envoy.yaml:ro"
|
- "$PWD/config/envoy.yaml:/etc/envoy/envoy.yaml:ro"
|
||||||
stacks-blockchain-postgres:
|
stacks-blockchain-postgres:
|
||||||
restart: always
|
restart: always
|
||||||
image: postgres:15.13
|
image: postgres:17.5
|
||||||
container_name: stacks_postgres
|
container_name: stacks_postgres
|
||||||
command: postgres -c 'max_connections=1000'
|
command: postgres -c 'max_connections=1000'
|
||||||
shm_size: 2gb
|
shm_size: 2gb
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ fi
|
|||||||
|
|
||||||
mkdir stacks-node
|
mkdir stacks-node
|
||||||
cd stacks-node
|
cd stacks-node
|
||||||
curl https://archive.hiro.so/mainnet/stacks-blockchain/mainnet-stacks-blockchain-3.1.0.0.9-latest.tar.gz | tar -zxv
|
curl https://archive.hiro.so/mainnet/stacks-blockchain/mainnet-stacks-blockchain-latest.tar.gz | tar -zxv
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if [ -e postresql ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir postgresql
|
mkdir postgresql
|
||||||
curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain-api-pg/stacks-blockchain-api-pg-15-8.10.0-latest.dump
|
curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain-api-pg/stacks-blockchain-api-pg-15-latest.dump
|
||||||
|
|
||||||
docker-compose up -d stacks-blockchain-postgres
|
docker-compose up -d stacks-blockchain-postgres
|
||||||
WAIT_HOSTS='127.0.0.1:5432' ./wait
|
WAIT_HOSTS='127.0.0.1:5432' ./wait
|
||||||
|
|||||||
Reference in New Issue
Block a user