Skip to content

Commit

Permalink
Feature/bearshare app integration (#28)
Browse files Browse the repository at this point in the history
* Added new app Bearshare integration

* Removed redundant code
  • Loading branch information
XternA authored Aug 30, 2024
1 parent c51d8c1 commit 9513df0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
16 changes: 16 additions & 0 deletions compose/compose.hosting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
9 changes: 7 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9513df0

Please sign in to comment.