Harden accounting and stratum production settings

This commit is contained in:
Ben
2026-06-08 13:27:24 -04:00
parent deaf3e56bd
commit 8252111c32
27 changed files with 414 additions and 183 deletions
+13
View File
@@ -1,3 +1,9 @@
x-log-limits: &log-limits
driver: json-file
options:
max-size: ${DOCKER_LOG_MAX_SIZE:-100m}
max-file: "${DOCKER_LOG_MAX_FILES:-5}"
services:
bitcoin:
container_name: bitcoin
@@ -6,6 +12,7 @@ services:
dockerfile: Dockerfile
restart: unless-stopped
stop_grace_period: 30s
logging: *log-limits
networks:
- bitcoin
ports:
@@ -22,6 +29,7 @@ services:
image: timescale/timescaledb:latest-pg17
container_name: public-pool-mainnet-timescaledb
restart: unless-stopped
logging: *log-limits
networks:
- bitcoin
environment:
@@ -52,6 +60,7 @@ services:
image: redis:8-alpine
container_name: public-pool-mainnet-redis
restart: unless-stopped
logging: *log-limits
networks:
- bitcoin
volumes:
@@ -69,6 +78,7 @@ services:
dockerfile: Dockerfile
restart: unless-stopped
stop_grace_period: 30s
logging: *log-limits
depends_on:
timescaledb:
condition: service_healthy
@@ -100,6 +110,9 @@ services:
API_WORKERS: ${API_WORKERS:-4}
PM2_ENABLED: "true"
STRATUM_WORKERS: ${STRATUM_WORKERS:-2}
STRATUM_MIN_DIFFICULTY: ${STRATUM_MIN_DIFFICULTY:-1}
STRATUM_SOCKET_TIMEOUT_MS: ${STRATUM_SOCKET_TIMEOUT_MS:-3600000}
STRATUM_TCP_KEEPALIVE_INITIAL_DELAY_MS: ${STRATUM_TCP_KEEPALIVE_INITIAL_DELAY_MS:-60000}
networks:
bitcoin: