forked from Yooooomi/your_spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 1 KB
/
docker-compose.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
38
39
40
41
version: "3"
services:
app:
container_name: express-mongo
restart: always
build:
context: ./server
dockerfile: Dockerfile.production
args:
- NODE_ENV=production
ports:
- "8080:8080"
links:
- mongo
depends_on:
- mongo
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
#- MONGO_ENDPOINT=mongodb://mongo:27017/your_spotify
mongo:
container_name: mongo
image: mongo:4.4.8
web:
container_name: web
restart: always
build:
context: ./client
dockerfile: Dockerfile.production
args:
- NODE_ENV=production
ports:
- "3000:3000"
environment:
- API_ENDPOINT=http://localhost:8080