|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
|
|
|
image: mempool/frontend:v2.2.0@sha256:e3c3dd393c99018a69068b0a924dd24cf8de47389cb6ef2cfd0fe2d31d77f931
|
|
|
|
user: "1000:1000"
|
|
|
|
init: true
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
command: "./wait-for mariadb:3306 --timeout=720 -- nginx -g 'daemon off;'"
|
|
|
|
ports:
|
|
|
|
- ${APP_MEMPOOL_PORT}:${APP_MEMPOOL_PORT}
|
|
|
|
environment:
|
|
|
|
FRONTEND_HTTP_PORT: $APP_MEMPOOL_PORT
|
|
|
|
BACKEND_MAINNET_HTTP_HOST: $APP_MEMPOOL_API_IP
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_MEMPOOL_IP
|
|
|
|
api:
|
|
|
|
image: mempool/backend:v2.2.0@sha256:5eb38b094288a6f12ac2e738ff5cff9257eaa8522ebf1d23827edebe4730ebf1
|
|
|
|
user: "1000:1000"
|
|
|
|
init: true
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
command: "./wait-for-it.sh mariadb:3306 --timeout=720 --strict -- ./start.sh"
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data:/backend/cache
|
|
|
|
environment:
|
|
|
|
RPC_HOST: $BITCOIN_IP
|
|
|
|
RPC_PORT: $BITCOIN_RPC_PORT
|
|
|
|
RPC_USER: $BITCOIN_RPC_USER
|
|
|
|
RPC_PASS: $BITCOIN_RPC_PASS
|
|
|
|
ELECTRUM_HOST: $ELECTRUM_IP
|
|
|
|
ELECTRUM_PORT: $ELECTRUM_PORT
|
|
|
|
ELECTRUM_TLS: "false"
|
|
|
|
MYSQL_HOST: $APP_MEMPOOL_DB_IP
|
|
|
|
MYSQL_PORT: "3306"
|
|
|
|
MYSQL_DATABASE: "mempool"
|
|
|
|
MYSQL_USER: "mempool"
|
|
|
|
MYSQL_PASS: "mempool"
|
|
|
|
BACKEND_MAINNET_HTTP_PORT: "8999"
|
|
|
|
CACHE_DIR: "/backend/cache"
|
|
|
|
MEMPOOL_CLEAR_PROTECTION_MINUTES: "20"
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_MEMPOOL_API_IP
|
|
|
|
mariadb:
|
|
|
|
image: mariadb:10.5.8@sha256:8040983db146f729749081c6b216a19d52e0973134e2e34c0b4fd87f48bc15b0
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/mysql/data:/var/lib/mysql
|
|
|
|
- ${APP_DATA_DIR}/mysql/db-scripts:/docker-entrypoint-initdb.d
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "mempool"
|
|
|
|
MYSQL_USER: "mempool"
|
|
|
|
MYSQL_PASSWORD: "mempool"
|
|
|
|
MYSQL_ROOT_PASSWORD: "moneyprintergobrrr"
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: $APP_MEMPOOL_DB_IP
|