forked from Yooooomi/your_spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
53 lines (50 loc) · 1.21 KB
/
docker-compose-dev.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
42
43
44
45
46
47
48
49
50
51
52
53
version: "3"
services:
app:
container_name: server
restart: always
build:
context: ./server
dockerfile: Dockerfile
args:
NODE_ENV: development
entrypoint: "/app/scripts/run/run_dev.sh"
ports:
- "8080:8080"
volumes:
- ./server/src/:/app/src/
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=all
- LOG_LEVEL=debug
mongo:
logging:
driver: none
volumes:
- ./db_data:/data/db
ports:
- "27017:27017"
web:
container_name: web
restart: always
build:
context: ./client
dockerfile: Dockerfile
args:
NODE_ENV: development
entrypoint: "/app/scripts/run/run_dev.sh"
ports:
- "3000:3000"
volumes:
- ./client/src:/app/src/
- ./client/public:/app/public/
environment:
- API_ENDPOINT=http://localhost:8080
- NODE_ENV=development