your_spotify
your_spotify copied to clipboard
mongo db doesn't start after reboot
Describe the bug
If I reboot my server, the service mongo doesn't start. I use docker compose. I try it with a change in the docker compose yml. I added "restart: unless-stopped"
Expected behavior
I want that the mongo service starts after reboot. Without this service, I don't have access to my account and data.
Additional context
version: "3"
services:
server:
image: yooooomi/your_spotify_server
restart: unless-stopped
ports:
- "8080:8080"
links:
- mongo
depends_on:
- mongo
environment:
- API_ENDPOINT=http://192.168.2.232:8080 # This MUST be included as a valid URL in the spotify dashboard (see below)
- CLIENT_ENDPOINT=http://192.168.2.232:3000
- SPOTIFY_PUBLIC=
- SPOTIFY_SECRET=
- CORS=http://192.168.2.232:3000,http://localhost:3001 # all if you want to allow every origin
mongo:
container_name: mongo
image: mongo:4.4.8
restart: unless-stopped
volumes:
- ./your_spotify_db:/data/db
web: image: yooooomi/your_spotify_client restart: unless-stopped ports: - "3000:3000" environment: - API_ENDPOINT=http://192.168.2.232:8080
Screenshots
If applicable, add screenshots to help explain your problem.
Shared link
If you don't mind, you can add a Shared link to this issue by clicking Share this page on your YourSpotify application so that I can identify the issue quicker.