app-store/apps/your-spotify/docker-compose.yml
Nicolas Meienberger edec0d0ca4
feat: app configs local domains (#713)
* feat(pairdrop): change config to support local domain

* feat(paperless-ngx): change config to support local domain

* feat(peppermint): change config to support local domain

* feat(photoprism): change config to support local domain

* feat(pihole): change config to support local domain

* feat(plausible): change config to support local domain

* feat(plex): change config to support local domain

* feat(podfetch): change config to support local domain

* feat(portainer): change config to support local domain

* feat(privatebin): change config to support local domain

* feat(prowlarr): change config to support local domain

* feat(proxitok): change config to support local domain

* feat(qbittorrent): change config to support local domain

* feat(radarr): change config to support local domain

* feat(readarr): change config to support local domain

* feat(resilio-sync): change config to support local domain

* feat(romm): change config to support local domain

* feat(rss): change config to support local domain

* feat(sabnzbd): change config to support local domain

* feat(searxng): change config to support local domain

* feat(send): change config to support local domain

* feat(simplex-smp): change config to support local domain

* feat(sonarr): change config to support local domain

* feat(syncthing): change config to support local domain

* feat(tasks-md): change config to support local domain

* feat(tautulli): change config to support local domain

* feat(teddit): change config to support local domain

* feat(transmission): change config to support local domain

* feat(tubearchivist): change config to support local domain

* feat(umami): change config to support local domain

* feat(uptime-kuma): change config to support local domain

* feat(vaultwarden): change config to support local domain

* feat(vikunja): change config to support local domain

* feat(wg-easy): change config to support local domain

* feat(wikijs): change config to support local domain

* feat(wizarr): change config to support local domain

* feat(your-spotify): change config to support local domain

* chore: labels formatting issues
2023-06-18 18:02:29 +02:00

73 lines
2.6 KiB
YAML

version: "3"
services:
your-spotify:
container_name: your-spotify
image: yooooomi/your_spotify_client
depends_on:
- your-spotify-server
restart: unless-stopped
ports:
- ${APP_PORT}:3000
environment:
- API_ENDPOINT=http://${INTERNAL_IP}:32500
networks:
- tipi_main_network
labels:
# 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
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
# 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
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