From 9513df0da145dd430ce5a552e5b00a5d11fe6175 Mon Sep 17 00:00:00 2001 From: XternA Date: Fri, 30 Aug 2024 05:13:48 +0100 Subject: [PATCH] Feature/bearshare app integration (#28) * Added new app Bearshare integration * Removed redundant code --- README.md | 1 + apps.json | 10 ++++++++++ compose/compose.hosting.yml | 16 ++++++++++++++++ start.sh | 9 +++++++-- 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6091d45..014f004 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ Each app has been grouped in the install option. Therefore, whether it be reside | **[BITPING](https://bit.ly/43xHKDt)** | :white_check_mark: | :white_check_mark: |Unlimited|1 | Crypto | | **[GAGANODE](https://bit.ly/4452ram)** | :white_check_mark: | :white_check_mark: |Unlimited|1 | Crypto | | **[NODEPAY](https://bit.ly/3zs6B0o)** | :white_check_mark: | :x: |250|Unlimited | Coming Soon | +| **[BEARSHARE](https://bit.ly/4g7PmCs)** | :white_check_mark: | :white_check_mark: |Unlimited|1 | Crypto | ## Tested Environments ✅ The docker stack should work on anything that has docker installed. The tool has been tried and tested on the following environments: diff --git a/apps.json b/apps.json index 5719fad..8f73f13 100644 --- a/apps.json +++ b/apps.json @@ -159,5 +159,15 @@ "NODEPAY_COOKIE" ], "is_enabled": true + }, + { + "name": "BEARSHARE", + "url": "https://bit.ly/4g7PmCs", + "description": " Only 1 device per IP allowed. Use IGM tool to disable app deployment on other machines in same IP network.", + "properties": [ + "BEARSHARE_EMAIL", + "BEARSHARE_PASSWORD" + ], + "is_enabled": true } ] diff --git a/compose/compose.hosting.yml b/compose/compose.hosting.yml index 6bee651..df6edaa 100644 --- a/compose/compose.hosting.yml +++ b/compose/compose.hosting.yml @@ -99,5 +99,21 @@ services: mem_limit: $RAM_LIMIT mem_reservation: $RAM_RESERVE + bearshare: + container_name: bearshare + image: xterna/bearshare + restart: always + environment: + - EMAIL=${BEARSHARE_EMAIL:-} + - PASSWORD=${BEARSHARE_PASSWORD:-} + profiles: + - ${BEARSHARE:-DISABLED} + dns: + - 1.1.1.1 + - 8.8.8.8 + cpus: $CPU_LIMIT + mem_limit: $RAM_LIMIT + mem_reservation: $RAM_RESERVE + volumes: bitping-data: diff --git a/start.sh b/start.sh index 35af426..5ba4c3c 100644 --- a/start.sh +++ b/start.sh @@ -95,10 +95,11 @@ option_1() { fi fi - echo $install_type - echo + echo "$install_type\n" docker compose --env-file $ENV_FILE --env-file $ENV_DEPLOY_FILE --profile ENABLED $compose_files pull + echo docker container prune -f + echo docker compose --env-file $ENV_FILE --env-file $ENV_DEPLOY_FILE --profile ENABLED $compose_files up --force-recreate --build -d ;; 0) @@ -179,6 +180,7 @@ option_5() { display_banner echo "Stopping and removing applications and volumes...\n" docker compose --env-file $ENV_FILE --env-file $ENV_DEPLOY_FILE --profile ENABLED --profile DISABLED $ALL_COMPOSE_FILES down -v + echo docker container prune -f echo "\nAll installed applications and volumes removed." printf "\nPress Enter to continue..."; read input @@ -215,7 +217,10 @@ option_7() { case $yn in [Yy]*) display_banner + echo "Removing orphaned applications..." docker system prune -a -f + echo "\nRemoving orphaned volumes..." + docker volume prune -a -f echo "\nCleanup completed." printf "\nPress Enter to continue..."; read input break