forked from Yooooomi/your_spotify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
58 lines (55 loc) · 1.29 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
54
55
56
57
58
services:
server:
container_name: server
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.server
args:
NODE_ENV: development
volumes:
- ./apps/server/src/:/app/apps/server/src/
links:
- mongo
depends_on:
- mongo
ports:
- "8090:8080"
env_file:
- dev.env
environment:
LOG_LEVEL: debug
API_ENDPOINT: http://localhost:8090 # This MUST be included as a valid URL in the spotify dashboard
CLIENT_ENDPOINT: http://localhost:3000
#SPOTIFY_PUBLIC: are set in the .env file
#SPOTIFY_SECRET: are set in the .env file
CORS: http://localhost:3000
# OFFLINE_DEV_ID: true
mongo:
image: mongo:6
restart: unless-stopped
logging:
driver: none
volumes:
- your_spotify_db:/data/db
ports:
- "27017:27017"
web:
container_name: web
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile.client
args:
NODE_ENV: development
volumes:
- ./apps/client/src:/app/apps/client/src/
- ./apps/client/public:/app/apps/client/public/
ports:
- "3000:3000"
environment:
NODE_ENV: development
API_ENDPOINT: http://localhost:8090
volumes:
your_spotify_db:
external: true