Created
January 6, 2024 11:58
-
-
Save jaonoctus/9057439ff16024bc5be8190d31c52481 to your computer and use it in GitHub Desktop.
Mempool.Space docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
web: | |
image: mempool/frontend:v2.5.0 | |
user: "1000:1000" | |
restart: on-failure | |
stop_grace_period: 1m | |
command: "./wait-for mariadb:3306 --timeout=720 -- nginx -g 'daemon off;'" | |
environment: | |
FRONTEND_HTTP_PORT: "8080" | |
BACKEND_MAINNET_HTTP_HOST: "api" | |
ports: | |
- 3006:8080 | |
depends_on: | |
- api | |
- mariadb | |
api: | |
image: mempool/backend:v2.5.0 | |
user: "1000:1000" | |
stop_grace_period: 1m | |
command: "./wait-for-it.sh mariadb:3306 --timeout=720 --strict -- ./start.sh" | |
environment: | |
MEMPOOL_BACKEND: "electrum" | |
CORE_RPC_HOST: "10.11.12.61" | |
CORE_RPC_PORT: "8332" | |
CORE_RPC_USERNAME: "bitcoin" | |
CORE_RPC_PASSWORD: "bitcoin" | |
ELECTRUM_HOST: "10.11.12.63" | |
ELECTRUM_PORT: "50001" | |
ELECTRUM_TLS: "false" | |
DATABASE_ENABLED: "true" | |
DATABASE_HOST: "mariadb" | |
DATABASE_PORT: "3306" | |
DATABASE_DATABASE: "mempool" | |
DATABASE_USERNAME: "mempool" | |
DATABASE_PASSWORD: "mempool" | |
LIGHTNING_ENABLED: "false" | |
volumes: | |
- mempool-cache:/backend/cache | |
depends_on: | |
- mariadb | |
mariadb: | |
image: mariadb:10.5.12 | |
restart: on-failure | |
stop_grace_period: 1m | |
environment: | |
MYSQL_DATABASE: "mempool" | |
MYSQL_USER: "mempool" | |
MYSQL_PASSWORD: "mempool" | |
MYSQL_ROOT_PASSWORD: "mempool" | |
volumes: | |
- mempool-db:/var/lib/mysql | |
volumes: | |
mempool-db: | |
mempool-cache: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to set it for Testnet network.