1
0

Migrate NBX to postgres (#622)

* Migrate NBX to postgres

* bump

* bump

* Add applicatoin name to connectoin string

* Add link postgres

* Change Max Pool Size

* maxPool size
This commit is contained in:
Nicolas Dorier
2022-04-04 15:50:02 +09:00
committed by GitHub
parent 8f1f4c6089
commit 575785abf1
4 changed files with 14 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ services:
nbxplorer:
restart: unless-stopped
image: nicolasdorier/nbxplorer:2.2.20
image: nicolasdorier/nbxplorer:2.3.4
expose:
- "32838"
environment:
@@ -12,6 +12,11 @@ services:
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_TRIMEVENTS: 10000
NBXPLORER_SIGNALFILESDIR: /datadir
NBXPLORER_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Application Name=nbxplorer;MaxPoolSize=20;Database=nbxplorer${NBITCOIN_NETWORK:-regtest}
NBXPLORER_AUTOMIGRATE: 1
NBXPLORER_NOMIGRATEEVTS: 1
links:
- postgres
volumes:
- "nbxplorer_datadir:/datadir"