-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yaml
59 lines (56 loc) · 1.22 KB
/
docker-compose.local.yaml
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
59
version: "3"
volumes:
pgdata:
redisdata:
services:
spotifly:
restart: always
build: .
image: thatcherthornberry/spotifly:latest
command: bash -c "python manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
volumes:
- .:/app/spotifly
env_file:
- .env
environment:
- SPOTIFY_REDIRECT_URI=http://0.0.0.0:8000/redirect
depends_on:
- postgres
postgres:
restart: always
image: postgres:12.0-alpine
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- 5432:5432
env_file:
- .env
redis:
restart: always
image: redis:6
command: >
--requirepass ${REDIS_PASSWORD}
ports:
- 6379:6379
volumes:
- redisdata:/data
# TODO: refactor these to their own repo or something
scheduler:
restart: always
image: thatcherthornberry/spotifly:latest
command: python manage.py rqscheduler --queue default
env_file:
- .env
depends_on:
- "redis"
# TODO: refactor these to their own repo or something
worker:
restart: always
image: thatcherthornberry/spotifly:latest
command: python manage.py rqworker default
env_file:
- .env
depends_on:
- "redis"