mirror of
https://github.com/alexgo-io/stacks-node-mainnet.git
synced 2026-04-30 20:02:47 +08:00
fix: restore pg
This commit is contained in:
@@ -10,9 +10,10 @@ services:
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: 6nyi11z9tWbXJDYsVESHQfNVo
|
||||
POSTGRES_DB: alexgo
|
||||
POSTGRES_DB: stacks_blockchain_api
|
||||
volumes:
|
||||
- ./postgresql:/var/lib/postgresql
|
||||
- ./postgresql/data:/var/lib/postgresql/data
|
||||
stacks-blockchain-api:
|
||||
restart: always
|
||||
image: bestmike007/stacks-blockchain-api:7.1.10
|
||||
@@ -25,7 +26,7 @@ services:
|
||||
PG_PORT: 5432
|
||||
PG_USER: postgres
|
||||
PG_PASSWORD: 6nyi11z9tWbXJDYsVESHQfNVo
|
||||
PG_DATABASE: alexgo
|
||||
PG_DATABASE: stacks_blockchain_api
|
||||
STACKS_CORE_EVENT_PORT: '3700'
|
||||
STACKS_CORE_EVENT_HOST: http://0.0.0.0
|
||||
STACKS_BLOCKCHAIN_API_PORT: '3999'
|
||||
|
||||
@@ -14,4 +14,4 @@ curl -o postgresql/latest.dump https://archive.hiro.so/mainnet/stacks-blockchain
|
||||
|
||||
docker-compose up -d stacks-blockchain-postgres
|
||||
WAIT_HOSTS='127.0.0.1:5432' ./wait
|
||||
docker exec -it stacks_postgres pg_restore -j 16 -Upostgres -v -C -d alexgo /var/lib/postgresql/latest.dump
|
||||
docker exec -it stacks_postgres pg_restore -j 16 -Upostgres -v -C /var/lib/postgresql/latest.dump
|
||||
|
||||
Reference in New Issue
Block a user