-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
48 lines (45 loc) · 1.01 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
42
43
44
45
46
47
48
services:
server:
restart: always
build:
context: .
args:
- NODE_ENV=dev
environment:
- NODE_ENV=dev
- PORT=8000
- HOST=localhost
- LOG_LEVEL=debug
- SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID}
- SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET}
- DB_HOST=jbx-dev-db
- DB_PORT=5432
- DB_USER=devuser
- DB_PASS=devpass
- DB_NAME=devdatabase
- REDIS_HOST=jbx-redis
- REDIS_PORT=6379
ports:
- 8000:8000
depends_on:
- postgres
volumes:
- ./src:/app/src
- ./package.json:/app/package.json
command: npm run start:dev
postgres:
image: postgres:13-alpine
container_name: jbx-dev-db
volumes:
- jukebox-pg-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=devdatabase
- POSTGRES_USER=devuser
- POSTGRES_PASSWORD=devpass
redis:
image: redis:alpine
container_name: jbx-redis
ports:
- 6379:6379
volumes:
jukebox-pg-data: