forked from Yooooomi/your_spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yml
37 lines (34 loc) · 1009 Bytes
/
docker-compose-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
app:
image: fabalexsie/your_spotify_server
restart: unless-stopped
links:
- mongo
depends_on:
- mongo
ports:
- "8080:8080"
environment:
API_ENDPOINT: http://localhost:8080 # This MUST be included as a valid URL in the spotify dashboard
CLIENT_ENDPOINT: http://localhost:3000
SPOTIFY_PUBLIC: __your_spotify_client_id__
SPOTIFY_SECRET: __your_spotify_secret__
CORS: http://localhost:3000,http://localhost:3001 # "i-want-a-security-vulnerability-and-want-to-allow-all-origins" if you want to allow every origin
mongo:
image: mongo:6
restart: unless-stopped
volumes:
- your_spotify_db:/data/db
ports:
- "27017:27017"
web:
image: fabalexsie/your_spotify_client
restart: unless-stopped
ports:
- "3000:3000"
environment:
NODE_ENV: development
API_ENDPOINT: http://localhost:8080
volumes:
your_spotify_db:
external: true