mirror of https://github.com/lukechilds/umbrel.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.9 KiB
68 lines
1.9 KiB
4 years ago
|
version: "3.7"
|
||
|
|
||
|
x-logging:
|
||
|
&default-logging
|
||
|
driver: journald
|
||
|
options:
|
||
|
tag: "umbrel-app {{.Name}}"
|
||
|
|
||
|
services:
|
||
|
web:
|
||
|
image: mempool/frontend:v2.1.1@sha256:17e7fedcd27b6f99de2f159f0f6372b76dd5825f1a98c1b0114ea9564cab1c0e
|
||
|
user: "1000:1000"
|
||
|
init: true
|
||
|
logging: *default-logging
|
||
|
restart: on-failure
|
||
|
stop_grace_period: 1m
|
||
|
command: "./wait-for db: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.1.1@sha256:c15c3d1af0f9df4672f3760b0ff9b79d1dd60235cde7316a7860b1d650b31360
|
||
|
user: "1000:1000"
|
||
|
init: true
|
||
|
logging: *default-logging
|
||
|
restart: on-failure
|
||
|
stop_grace_period: 1m
|
||
|
command: "./wait-for-it.sh db: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
|
||
|
ELECTRS_HOST: $ELECTRUM_IP
|
||
|
ELECTRS_PORT: $ELECTRUM_PORT
|
||
|
MYSQL_HOST: $APP_MEMPOOL_DB_IP
|
||
|
MYSQL_DATABASE: "mempool"
|
||
|
MYSQL_USER: "mempool"
|
||
|
MYSQL_PASS: "mempool"
|
||
|
CACHE_DIR: "/backend/cache/"
|
||
|
networks:
|
||
|
default:
|
||
|
ipv4_address: $APP_MEMPOOL_API_IP
|
||
|
db:
|
||
|
image: mariadb:10.5.8
|
||
|
user: "1000:1000"
|
||
|
logging: *default-logging
|
||
|
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
|