2021-03-21 20:12:18 +01:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
web:
|
2022-01-11 06:09:06 +01:00
|
|
|
environment:
|
|
|
|
FRONTEND_HTTP_PORT: "8080"
|
|
|
|
BACKEND_MAINNET_HTTP_HOST: "api"
|
2021-03-21 20:12:18 +01:00
|
|
|
image: mempool/frontend:latest
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
command: "./wait-for db:3306 --timeout=720 -- nginx -g 'daemon off;'"
|
|
|
|
ports:
|
|
|
|
- 80:8080
|
|
|
|
api:
|
2022-01-11 06:09:06 +01:00
|
|
|
environment:
|
|
|
|
MEMPOOL_BACKEND: "none"
|
|
|
|
RPC_HOST: "172.27.0.1"
|
|
|
|
RPC_PORT: "8332"
|
2022-01-11 08:30:31 +01:00
|
|
|
RPC_USER: "mempool"
|
|
|
|
RPC_PASS: "mempool"
|
2022-01-11 06:09:06 +01:00
|
|
|
MYSQL_ENABLED: "true"
|
|
|
|
MYSQL_HOST: "db"
|
|
|
|
STATISTICS_ENABLED: "true"
|
2021-03-21 20:12:18 +01:00
|
|
|
image: mempool/backend:latest
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
command: "./wait-for-it.sh db:3306 --timeout=720 --strict -- ./start.sh"
|
|
|
|
volumes:
|
|
|
|
- ./data:/backend/cache
|
2022-01-11 06:09:06 +01:00
|
|
|
db:
|
2021-03-21 20:12:18 +01:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "mempool"
|
|
|
|
MYSQL_USER: "mempool"
|
2022-01-11 06:09:06 +01:00
|
|
|
MYSQL_PASSWORD: "mempool"
|
|
|
|
MYSQL_ROOT_PASSWORD: "admin"
|
2021-03-21 20:12:18 +01:00
|
|
|
image: mariadb:10.5.8
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 1m
|
|
|
|
volumes:
|
|
|
|
- ./mysql/data:/var/lib/mysql
|