diff --git a/woofbot/data/db/diagnostic.data/.gitkeep b/woofbot/data/db/diagnostic.data/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/woofbot/data/db/journal/.gitkeep b/woofbot/data/db/journal/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/woofbot/docker-compose.yml b/woofbot/docker-compose.yml new file mode 100644 index 0000000..1a3c29a --- /dev/null +++ b/woofbot/docker-compose.yml @@ -0,0 +1,37 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: $APP_WOOFBOT_WEB_IP + APP_PORT: 8080 + web: + image: woofbot/woofbot:v0.2.0@sha256:bfcc02f752963eaf9f9c3bf2776e032194d218b0037f3c54ed19d8872a7f241b + restart: on-failure + stop_grace_period: 1m + environment: + MONGODB_URI: "mongodb://${APP_WOOFBOT_DATABASE_IP}:27017/woofbot" + APP_PORT: "8080" + APP_SEED: $APP_SEED + APP_BITCOIN_NODE_IP: $APP_BITCOIN_NODE_IP + APP_BITCOIN_RPC_USER: $APP_BITCOIN_RPC_USER + APP_BITCOIN_RPC_PASS: $APP_BITCOIN_RPC_PASS + APP_BITCOIN_RPC_PORT: $APP_BITCOIN_RPC_PORT + networks: + default: + ipv4_address: $APP_WOOFBOT_WEB_IP + depends_on: + - mongodb + mongodb: + # Newer mongo versions don't support Raspberry Pi 4 arm64 + image: mongo:4.4.6-bionic@sha256:3d0e6df9fd5bc42cbf8ef8bc9e6c4e78f6f26c7157dbd7bdec72d202ab8ebe3a + user: 1000:1000 + restart: on-failure + stop_grace_period: 1m + volumes: + - ${APP_DATA_DIR}/data/db:/data/db + - ${APP_DATA_DIR}/data/db/diagnostic.data:/data/db/diagnostic.data + - ${APP_DATA_DIR}/data/db/journal:/data/db/journal + networks: + default: + ipv4_address: $APP_WOOFBOT_DATABASE_IP diff --git a/woofbot/exports.sh b/woofbot/exports.sh new file mode 100644 index 0000000..a7d7254 --- /dev/null +++ b/woofbot/exports.sh @@ -0,0 +1,3 @@ +export APP_WOOFBOT_WEB_IP="10.21.21.100" +export APP_WOOFBOT_WEB_PORT="8092" +export APP_WOOFBOT_DATABASE_IP="10.21.21.101" diff --git a/woofbot/umbrel-app.yml b/woofbot/umbrel-app.yml new file mode 100644 index 0000000..ea04615 --- /dev/null +++ b/woofbot/umbrel-app.yml @@ -0,0 +1,23 @@ +manifestVersion: 1 +id: woofbot +category: Explorers +name: WoofBot +version: "0.1.0" +tagline: A chatbot for your personal node +description: >- + WoofBot is a chat bot that runs on your personal Bitcoin node and sends telegram notifications + based on pre-configured conditions: addresses, transactions, new-blocks and price changes. +developer: WoofBotApp +website: https://github.com/woofbotapp +dependencies: + - bitcoin +repo: https://github.com/woofbotapp/woofbotapp +support: https://github.com/woofbotapp/woofbotapp/discussions +port: 8092 +gallery: + - 1.jpg + - 2.jpg + - 3.jpg +path: "" +defaultUsername: "" +defaultPassword: ""