pi-hosted/stack/your-spotify.yml
codeman1o1 c663549f41
mongo-your-spotify service now restarts unless stopped (#409)
Added `restart: unless-stopped` :)
2022-12-06 19:24:12 -05:00

33 lines
803 B
YAML

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
restart: unless-stopped
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__}