浏览代码

Added Your Spotify Dashboard app (#15)

Developed by SiriusBrightstar
SiriusBrightstar 3 年之前
父节点
当前提交
4d45dea688

+ 1 - 0
docs/AppList.md

@@ -153,5 +153,6 @@ List of all apps included in this project with info related to it.
 |[Wireguard Server](https://github.com/WeeJeWel/wg-easy/)|32/64 bit|Stack| [![](../build/images/blue_doc_icon.png)](https://github.com/WeeJeWel/wg-easy/#1-install-docker) | [![](../build/images/red_doc_icon.png)](../docs/wireguard-install.md) |  |  |  |
 |[Wordpress](https://wordpress.com/)|32/64 bit|Stack| [![](../build/images/blue_doc_icon.png)](https://github.com/docker-library/docs/tree/master/wordpress#-via-docker-stack-deploy-or-docker-compose) | [![](../build/images/red_doc_icon.png)](../docs/wordpress_installation.md) |  |  |  |
 |[Yacht](https://yacht.sh/)|32/64 bit|Container| [![](../build/images/blue_doc_icon.png)](https://yacht.sh/docs/Installation/Install#via-docker-compose) |  |  |  |  |
+|[your-spotify](https://github.com/Yooooomi/your_spotify)|32/64 bit|Stack| [![](../build/images/blue_doc_icon.png)](https://github.com/Yooooomi/your_spotify#readme) |  |  |  |  |
 |[YouTubeDL-Material](https://github.com/Tzahi12345/YoutubeDL-Material)|32/64 bit|Container| [![](../build/images/blue_doc_icon.png)](https://github.com/Tzahi12345/YoutubeDL-Material#docker) |  |  |  |  |
 |[ZNC](https://wiki.znc.in/ZNC)|32/64 bit|Container| [![](../build/images/blue_doc_icon.png)](https://docs.linuxserver.io/images/docker-znc) |  |  |  |  |

+ 1 - 1
docs/DocumentList.md

@@ -10,7 +10,7 @@ List of all Documents used within this project with related Apps and Videos.
 |[macvlan_setup.md](../docs/macvlan_setup.md)|Attach a container directly to local network (macvlan)|||
 |[nginx_proxy_manager.md](../docs/nginx_proxy_manager.md)|Install and setup instructions for Nginx Proxy Manager (NPM)|Nginx Proxy Manager|[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=plastic&logo=youtube&logoColor=white)]("https://www.youtube.com/watch?v=yl2Laxbqvo8&list=PL846hFPMqg3jwkxcScD1xw2bKXrJVvarc&index=10")|
 |[photoprism.md](../docs/photoprism.md)|Install and Setup Instructions for PhotoPrism Stack|PhotoPrism||
-|[pi-hole.md](../docs/pi-hole.md)|Install and Setup Pi-Hole for Network-Wide Ad Block|Pi-Hole DoH/DoT<br>Pi-Hole-Unbound<br>Pi-Hole||
+|[pi-hole.md](../docs/pi-hole.md)|Install and Setup Pi-Hole for Network-Wide Ad Block|Pi-Hole<br>Pi-Hole-Unbound<br>Pi-Hole DoH/DoT||
 |[rpi_docker_monitor.md](../docs/rpi_docker_monitor.md)|Install and setup instructions for the RPI Docker Monitor|Raspberry Pi Docker Monitor|[![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=plastic&logo=youtube&logoColor=white)]("https://www.youtube.com/watch?v=IoD3vFuep64&list=PL846hFPMqg3jwkxcScD1xw2bKXrJVvarc&index=8")|
 |[searxng.md](../docs/searxng.md)|Install and Setup Instructions for SearXNG Meta Search|SearXNG||
 |[throttled.md](../docs/throttled.md)|Install and Setup Instructions for the Throttled Script|||

+ 54 - 0
pi-hosted_template/template/portainer-v2.json

@@ -5765,6 +5765,60 @@
 			],
 			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://yacht.sh/\" target=\"_blank\">https://yacht.sh/</a><br><b>Official Docker Documentation: </b><a href=\"https://yacht.sh/docs/Installation/Install#via-docker-compose\" target=\"_blank\">https://yacht.sh/docs/Installation/Install#via-docker-compose</a><br><br><br>"
 		},
+		{
+			"categories": [
+				"Music"
+			],
+			"description": "Self hosted Spotify tracking dashboard.",
+			"env": [
+				{
+					"default": "3081",
+					"label": "API Port",
+					"name": "__api_port__"
+				},
+				{
+					"default": "3080",
+					"label": "Client Port",
+					"name": "__client_port__"
+				},
+				{
+					"default": "http://192.168.X.Y:3080",
+					"label": "Client Endpoint",
+					"name": "__client_endpoint__",
+					"description": "If you have changed the default client port don't forget to change it here too."
+				},
+				{
+					"default": "http://192.168.X.Y:3081",
+					"label": "API Endpoint",
+					"name": "__api_endpoint__",
+					"description": "If you have changed the default API port don't forget to change it here too."
+				},
+				{
+					"default": "America/New_York",
+					"label": "TZ",
+					"name": "TZ"
+				},
+				{
+					"description": "Create a Spotify App and copy the Client ID: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client ID",
+					"name": "__your_spotify_client_id__"
+				},
+				{
+					"description": "Copy the Client Secret: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client Secret",
+					"name": "__your_spotify_secret__"
+				}
+			],
+			"name": "Your Spotify",
+			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://github.com/Yooooomi/your_spotify\" target=\"_blank\">https://github.com/Yooooomi/your_spotify</a><br><b>Official Docker Documentation: </b><a href=\"https://github.com/Yooooomi/your_spotify#readme\" target=\"_blank\">https://github.com/Yooooomi/your_spotify#readme</a><br><br><br>Create a Spotify App here: https://developer.spotify.com/dashboard/applications. Don't forget adding Redirect URL: http://192.168.X.Y:3081/oauth/spotify/callback under edit settings of the dashboard.",
+			"platform": "linux",
+			"repository": {
+				"stackfile": "stack/your-spotify.yml",
+				"url": "https://github.com/pi-hosted/pi-hosted"
+			},
+			"title": "your-spotify",
+			"type": 3
+		},
 		{
 			"categories": [
 				"Other",

+ 32 - 0
stack/your-spotify.yml

@@ -0,0 +1,32 @@
+version: "3"
+
+services:
+  server:
+    image: yooooomi/your_spotify_server
+    restart: unless-stopped
+    ports:
+      - "${__api_port__}:8080"
+    links:
+      - mongo
+    depends_on:
+      - mongo
+    environment:
+      - API_ENDPOINT=${__api_endpoint__}
+      - CLIENT_ENDPOINT=${__client_endpoint__}
+      - SPOTIFY_PUBLIC=${__your_spotify_client_id__}
+      - SPOTIFY_SECRET=${__your_spotify_secret__}
+      - CORS=all
+      - TIMEZONE=${TZ}
+  mongo:
+    container_name: mongo-your-spotify
+    image: mongo:4.4.8
+    volumes:
+      - /portainer/Files/AppData/Config/your_spotify/DB:/data/db
+
+  web:
+    image: yooooomi/your_spotify_client
+    restart: unless-stopped
+    ports:
+      - "${__client_port__}:3000"
+    environment:
+      - API_ENDPOINT=${__api_endpoint__}

+ 55 - 0
template/apps/your-spotify.json

@@ -0,0 +1,55 @@
+{
+  "categories": ["Music"],
+  "description": "Self hosted Spotify tracking dashboard.",
+  "env": [
+    {
+      "default": "3081",
+      "label": "API Port",
+      "name": "__api_port__"
+    },
+    {
+      "default": "3080",
+      "label": "Client Port",
+      "name": "__client_port__"
+    },
+    {
+      "default": "http://192.168.X.Y:3080",
+      "label": "Client Endpoint",
+      "name": "__client_endpoint__",
+      "description": "If you have changed the default client port don't forget to change it here too."
+    },
+    {
+      "default": "http://192.168.X.Y:3081",
+      "label": "API Endpoint",
+      "name": "__api_endpoint__",
+      "description": "If you have changed the default API port don't forget to change it here too."
+    },
+    {
+      "default": "America/New_York",
+      "label": "TZ",
+      "name": "TZ"
+    },
+    {
+      "description": "Create a Spotify App and copy the Client ID: https://developer.spotify.com/dashboard/applications",
+      "label": "Spotify Client ID",
+      "name": "__your_spotify_client_id__"
+    },
+    {
+      "description": "Copy the Client Secret: https://developer.spotify.com/dashboard/applications",
+      "label": "Spotify Client Secret",
+      "name": "__your_spotify_secret__"
+    }
+  ],
+  "name": "Your Spotify",
+  "officialDoc": "https://github.com/Yooooomi/your_spotify#readme",
+  "webpage": "https://github.com/Yooooomi/your_spotify",
+  "note": "Create a Spotify App here: https://developer.spotify.com/dashboard/applications. Don't forget adding Redirect URL: http://192.168.X.Y:3081/oauth/spotify/callback under edit settings of the dashboard.",
+  "platform": "linux",
+  "repository": {
+    "stackfile32": "stack/your-spotify.yml",
+    "stackfile64": "stack/your-spotify.yml",
+    "url": "https://github.com/pi-hosted/pi-hosted"
+  },
+  "title": "your-spotify",
+  "type": 3
+}

+ 54 - 0
template/portainer-v2-arm32.json

@@ -5765,6 +5765,60 @@
 			],
 			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://yacht.sh/\" target=\"_blank\">https://yacht.sh/</a><br><b>Official Docker Documentation: </b><a href=\"https://yacht.sh/docs/Installation/Install#via-docker-compose\" target=\"_blank\">https://yacht.sh/docs/Installation/Install#via-docker-compose</a><br><br><br>"
 		},
+		{
+			"categories": [
+				"Music"
+			],
+			"description": "Self hosted Spotify tracking dashboard.",
+			"env": [
+				{
+					"default": "3081",
+					"label": "API Port",
+					"name": "__api_port__"
+				},
+				{
+					"default": "3080",
+					"label": "Client Port",
+					"name": "__client_port__"
+				},
+				{
+					"default": "http://192.168.X.Y:3080",
+					"label": "Client Endpoint",
+					"name": "__client_endpoint__",
+					"description": "If you have changed the default client port don't forget to change it here too."
+				},
+				{
+					"default": "http://192.168.X.Y:3081",
+					"label": "API Endpoint",
+					"name": "__api_endpoint__",
+					"description": "If you have changed the default API port don't forget to change it here too."
+				},
+				{
+					"default": "America/New_York",
+					"label": "TZ",
+					"name": "TZ"
+				},
+				{
+					"description": "Create a Spotify App and copy the Client ID: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client ID",
+					"name": "__your_spotify_client_id__"
+				},
+				{
+					"description": "Copy the Client Secret: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client Secret",
+					"name": "__your_spotify_secret__"
+				}
+			],
+			"name": "Your Spotify",
+			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://github.com/Yooooomi/your_spotify\" target=\"_blank\">https://github.com/Yooooomi/your_spotify</a><br><b>Official Docker Documentation: </b><a href=\"https://github.com/Yooooomi/your_spotify#readme\" target=\"_blank\">https://github.com/Yooooomi/your_spotify#readme</a><br><br><br>Create a Spotify App here: https://developer.spotify.com/dashboard/applications. Don't forget adding Redirect URL: http://192.168.X.Y:3081/oauth/spotify/callback under edit settings of the dashboard.",
+			"platform": "linux",
+			"repository": {
+				"stackfile": "stack/your-spotify.yml",
+				"url": "https://github.com/pi-hosted/pi-hosted"
+			},
+			"title": "your-spotify",
+			"type": 3
+		},
 		{
 			"categories": [
 				"Other",

+ 54 - 0
template/portainer-v2-arm64.json

@@ -6151,6 +6151,60 @@
 			],
 			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://yacht.sh/\" target=\"_blank\">https://yacht.sh/</a><br><b>Official Docker Documentation: </b><a href=\"https://yacht.sh/docs/Installation/Install#via-docker-compose\" target=\"_blank\">https://yacht.sh/docs/Installation/Install#via-docker-compose</a><br><br><br>"
 		},
+		{
+			"categories": [
+				"Music"
+			],
+			"description": "Self hosted Spotify tracking dashboard.",
+			"env": [
+				{
+					"default": "3081",
+					"label": "API Port",
+					"name": "__api_port__"
+				},
+				{
+					"default": "3080",
+					"label": "Client Port",
+					"name": "__client_port__"
+				},
+				{
+					"default": "http://192.168.X.Y:3080",
+					"label": "Client Endpoint",
+					"name": "__client_endpoint__",
+					"description": "If you have changed the default client port don't forget to change it here too."
+				},
+				{
+					"default": "http://192.168.X.Y:3081",
+					"label": "API Endpoint",
+					"name": "__api_endpoint__",
+					"description": "If you have changed the default API port don't forget to change it here too."
+				},
+				{
+					"default": "America/New_York",
+					"label": "TZ",
+					"name": "TZ"
+				},
+				{
+					"description": "Create a Spotify App and copy the Client ID: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client ID",
+					"name": "__your_spotify_client_id__"
+				},
+				{
+					"description": "Copy the Client Secret: https://developer.spotify.com/dashboard/applications",
+					"label": "Spotify Client Secret",
+					"name": "__your_spotify_secret__"
+				}
+			],
+			"name": "Your Spotify",
+			"note": "<h3>Template created by Pi-Hosted Series</h3><b>Check our Github page: <a href=\"https://github.com/pi-hosted/pi-hosted\" target=\"_blank\">https://github.com/pi-hosted/pi-hosted</a></b><br><br><b>Official Webpage: </b><a href=\"https://github.com/Yooooomi/your_spotify\" target=\"_blank\">https://github.com/Yooooomi/your_spotify</a><br><b>Official Docker Documentation: </b><a href=\"https://github.com/Yooooomi/your_spotify#readme\" target=\"_blank\">https://github.com/Yooooomi/your_spotify#readme</a><br><br><br>Create a Spotify App here: https://developer.spotify.com/dashboard/applications. Don't forget adding Redirect URL: http://192.168.X.Y:3081/oauth/spotify/callback under edit settings of the dashboard.",
+			"platform": "linux",
+			"repository": {
+				"stackfile": "stack/your-spotify.yml",
+				"url": "https://github.com/pi-hosted/pi-hosted"
+			},
+			"title": "your-spotify",
+			"type": 3
+		},
 		{
 			"categories": [
 				"Other",