mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
some changes for docker setup (#9)
* added SIGTERM handler for graceful docker shutdown * added error message * added example for bitcoind running on the host undockered * added docker-compose and extended example * added docker-compose section to README * addes some note for rpcallowip * added restart policy * added DB folder for persistent data * added $NETWORK as prefix for database path to not get in conflict with testnet setup * used env variables for stratum and api ports
This commit is contained in:
@@ -43,6 +43,11 @@ async function bootstrap() {
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
process.on('SIGTERM', () => {
|
||||
console.log(`Stopping services`);
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
app.enableCors();
|
||||
useContainer(app.select(AppModule), { fallbackOnErrors: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user