Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions pogolo/data/pogolo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[pogolo]
# optional, required from clients if set
# password = ''
# will be replaced by default tag if too long (about 86 chars)
# customize it! add your swarm stats, like
# '/pogolo on Umbrel - gamma x1 - decentralize or die/'
tag = '/pogolo on Umbrel - decentralize or die/'
# default on-chain address to mine to if not provided by client
# pool_address = ''
# minimum 0.16
default_difficulty = 1024.0
# how often to send new work to clients, in seconds
job_interval = 60
# how often we want shares on average, in seconds
target_share_interval = 5
# extranonce2 size in bytes, usually shouldnt be touched
# extranonce2_size = 4
# ignore the client-suggested difficulty
# ignore_suggested_difficulty = false
# disable automatic difficulty adjustment
# disable_vardiff = false
43 changes: 43 additions & 0 deletions pogolo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: "3.7"

services:
app_proxy:
environment:
APP_HOST: pogolo_gotty_1
APP_PORT: 5663

gotty:
image: sorenisanerd/gotty:v1.6.0@sha256:23b4669973e96d8d7d37b3bfd9e6566bdd701aa1a56eee2dc0e0362bd927ed88
restart: on-failure
user: "1000:1000"
stop_grace_period: 1m
command: ["gotty", "--port", "5663", "--width", "80", "--title-format", "pogolo (on Umbrel)", "sh", "-c", "tail -n 10000 -f /data/pogolo.log"]
volumes:
- ${APP_DATA_DIR}/data:/data

pogolo:
image: 0xf0xx0/pogolo:v1.x@sha256:f692a1fb4bb338a42089bbafbb1f22304a989590548da21b3fb5bf16ad590093
restart: on-failure
user: "1000:1000"
stop_grace_period: 30s
labels:
- logopo
ports:

Check notice on line 25 in pogolo/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

External port mapping "5662:5662"

Port mappings may be unnecessary for the app to function correctly. Docker's internal DNS resolves container names to IP addresses within the same network. External access to the web interface is handled by the app_proxy container. Port mappings are only needed if external access is required to a port not proxied by the app_proxy, or if an app needs to expose multiple ports for its functionality (e.g., DHCP, DNS, P2P, etc.).

Check notice on line 25 in pogolo/docker-compose.yml

View workflow job for this annotation

GitHub Actions / Lint apps

External port mapping "5661:5661"

Port mappings may be unnecessary for the app to function correctly. Docker's internal DNS resolves container names to IP addresses within the same network. External access to the web interface is handled by the app_proxy container. Port mappings are only needed if external access is required to a port not proxied by the app_proxy, or if an app needs to expose multiple ports for its functionality (e.g., DHCP, DNS, P2P, etc.).
- 5661:5661 # stratum
- 5662:5662 # api
volumes:
- "${APP_DATA_DIR}/data:/data"
environment:
POGOLO_HOST: "0.0.0.0"
POGOLO_BACKEND_HOST: "$APP_BITCOIN_NODE_IP:$APP_BITCOIN_RPC_PORT"
POGOLO_BACKEND_RPCAUTH: "$APP_BITCOIN_RPC_USER:$APP_BITCOIN_RPC_PASS"
# colorful logs
FORCE_COLOR: 1
command: ["/pogolo", "--conf", "/data/pogolo.toml", "--logfile", "/data/pogolo.log"]

widget-server:
image: 0xf0xx0/umbrel-pogolo-widget:v1.0.0@sha256:4355198345deb2b6c7f6f38ad9ef5e91e3fbdc5e13d5465446fe89c968ecf852
restart: on-failure
user: "1000:1000"
environment:
POGOLO_API_URL: "http://pogolo_pogolo_1:5662"
46 changes: 46 additions & 0 deletions pogolo/umbrel-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
manifestVersion: 1.1
name: pogolo
id: pogolo
version: "1.1.1"
category: bitcoin
dependencies:
- bitcoin
tagline: Local Go-based solo pool
description: >-
solo db-less bitcoin-only mining pool,
meant for lan swarms, not the internet;

start it, point your miners to it, and watch the logs roll by

think of this as public-pool but minimal and for self-sovereign nerds
releaseNotes: ""

developer: 0xf0xx0
website: https://github.com/0xf0xx0/pogolo
repo: https://github.com/0xf0xx0/pogolo
support: https://github.com/0xf0xx0/pogolo/discussions
port: 5663
gallery: []
path: ""
submitter: 0xf0xx0
submission: https://github.com/getumbrel/umbrel-apps/pull/4622
widgets:
- id: "pogolo-stats"
type: "four-stats"
refresh: "30s"
endpoint: "widget-server:3000/widgets/pool"
link: ""
example:
type: "four-stats"
link: ""
items:
- title: "Hashrate"
text: "6.9"
subtext: "Th/s"
- title: "Gophers"
text: "420,420"
- title: "Height"
text: "8,888,888"
- title: "Best Share"
text: "210"
subtext: "Giga"