| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  | version: "3"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | services:
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |   your-spotify:
 | 
					
						
							|  |  |  |     container_name: your-spotify
 | 
					
						
							| 
									
										
										
										
											2023-11-22 09:09:28 +00:00
										 |  |  |     image: yooooomi/your_spotify_client:1.7.3
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - your-spotify-server
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - ${APP_PORT}:3000
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - API_ENDPOINT=http://${INTERNAL_IP}:32500
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  |     labels:
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.your-spotify-web-redirect.redirectscheme.scheme: https
 | 
					
						
							|  |  |  |       traefik.http.services.your-spotify.loadbalancer.server.port: 3000
 | 
					
						
							|  |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-insecure.service: your-spotify
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-insecure.middlewares: your-spotify-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |       traefik.http.routers.your-spotify.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify.service: your-spotify
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify.tls.certresolver: myresolver
 | 
					
						
							| 
									
										
										
										
											2023-06-18 16:02:29 +00:00
										 |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local-insecure.rule: Host(`your-spotify.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local-insecure.service: your-spotify
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local-insecure.middlewares: your-spotify-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local.rule: Host(`your-spotify.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local.service: your-spotify
 | 
					
						
							|  |  |  |       traefik.http.routers.your-spotify-local.tls: true
 | 
					
						
							| 
									
										
										
										
											2022-11-11 19:33:58 +00:00
										 |  |  |       
 | 
					
						
							| 
									
										
										
										
											2022-07-28 17:46:12 +00:00
										 |  |  |   your-spotify-server:
 | 
					
						
							|  |  |  |     container_name: your-spotify-server
 | 
					
						
							|  |  |  |     image: yooooomi/your_spotify_server
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     dns:
 | 
					
						
							|  |  |  |       - ${DNS_IP}
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							|  |  |  |       - 32500:8080
 | 
					
						
							|  |  |  |     links:
 | 
					
						
							|  |  |  |       - your-spotify-db
 | 
					
						
							|  |  |  |     depends_on:
 | 
					
						
							|  |  |  |       - your-spotify-db
 | 
					
						
							|  |  |  |     environment:
 | 
					
						
							|  |  |  |       - API_ENDPOINT=http://${INTERNAL_IP}:32500 # This MUST be included as a valid URL in the spotify dashboard (see below)
 | 
					
						
							|  |  |  |       - CLIENT_ENDPOINT=http://${INTERNAL_IP}:${APP_PORT}
 | 
					
						
							|  |  |  |       - SPOTIFY_PUBLIC=${SPOTIFY_PUBLIC}
 | 
					
						
							|  |  |  |       - SPOTIFY_SECRET=${SPOTIFY_SECRET}
 | 
					
						
							|  |  |  |       - MONGO_ENDPOINT=mongodb://your-spotify-db:27017/your_spotify
 | 
					
						
							|  |  |  |       - CORS=all
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   your-spotify-db:
 | 
					
						
							|  |  |  |     container_name: your-spotify-db
 | 
					
						
							|  |  |  |     image: mongo:4.4.8
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							|  |  |  |       - ${APP_DATA_DIR}/data/db:/data/db
 | 
					
						
							|  |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 |