Advertisement
Guest User

Your Spotify docker compose

a guest
Feb 23rd, 2023
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.83 KB | None | 0 0
  1. version: "3"
  2. services:
  3.   yourspotifyserver:
  4.     container_name: yourSpotifyserver
  5.     image: yooooomi/your_spotify_server
  6.     restart: always
  7.     ports:
  8.     - "55555:8080"
  9.     links:
  10.      - mongo
  11.     depends_on:
  12.      - mongo
  13.     environment:
  14.      - API_ENDPOINT=https://yourspotifyback.example.com# This MUST be included as a valid URL in the spotify dashboard (see below)
  15.       - CLIENT_ENDPOINT=https://yourspotify.example.com
  16.       - SPOTIFY_PUBLIC= secret
  17.       - SPOTIFY_SECRET= secert
  18.       - CORS=all # all if you want to allow every origin
  19.       - TIMEZONE=Pacific/Auckland
  20.       - MONGO_ENDPOINT=mongodb://mongo:27017/your_spotify
  21.     labels:
  22.      - "traefik.enable=true"
  23.       - "traefik.http.routers.yourspotifyback.rule=Host(`yourspotifyback.example.com`)"
  24.       - "traefik.http.routers.yourspotifyback.entrypoints=websecure"
  25.       - "traefik.http.routers.yourspotifyback.tls.certresolver=letsencrypt"
  26.      
  27.      # - "traefik.http.routers.yourspotifyback.middlewares=chain-authelia@file"      
  28.   mongo:
  29.     container_name: mongo
  30.     restart: always
  31.     image: mongo:4.4.8
  32.     ports:
  33.     - 27017:27017
  34.     volumes:
  35.      - /docker/appdata/yourspotify/mongo/your_spotify_db:/data/db
  36.   web:
  37.     container_name: YourspotifyWeb
  38.     image: yooooomi/your_spotify_client
  39.     restart: always
  40.     ports:
  41.      - "44444:3000"
  42.     environment:
  43.      - API_ENDPOINT=https://yourspotifyback.example.com
  44.     labels:
  45.      - "traefik.enable=true"
  46.       - "traefik.http.routers.yourspotify.rule=Host(`yourspotify.example.com`)"
  47.       - "traefik.http.routers.yourspotify.entrypoints=websecure"
  48.       - "traefik.http.routers.yourspotify.tls.certresolver=letsencrypt"
  49.      
  50.      #- "traefik.http.routers.yourspotify.middlewares=chain-authelia@file"
  51. networks:
  52.   default:
  53.     name: traefik_default
  54.     external: true
  55.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement