-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 886 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (39 loc) · 886 Bytes
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
version: '3'
services:
backend:
build: .
environment:
- EVENTFUL_API_KEY=${EVENTFUL_API_KEY}
- REDIS_URL=redis://cache:6379/1
- SPOTIFY_ID=${SPOTIFY_ID}
- SPOTIFY_SECRET=${SPOTIFY_SECRET}
- SPOTIFY_URL=${SPOTIFY_URL}
- DATABASE_URL=postgres://dbuser:dbpassword@db/postgres
- DEBUG=true
ports:
- "8000:8000"
volumes:
- .:/code
working_dir: /code
command: >
bash -c "python3 manage.py runserver 0.0.0.0:8000 &
python3 manage.py qcluster"
links:
- cache
- db
frontend:
environment:
- SPOTIFY_ID=${SPOTIFY_ID}
- SPOTIFY_URL=${SPOTIFY_URL}
image: node:10
volumes:
- .:/code
working_dir: /code
command: npm start
cache:
image: redis
db:
image: postgres
environment:
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpassword