-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
59 lines (56 loc) · 1.27 KB
/
docker-compose.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: null
redisdata: null
static_spotifly: null
services:
spotifly:
restart: always
build: ./projects/spotifly
image: thatcherthornberry/spotifly:latest
command: bash -c "
python manage.py migrate &&
gunicorn music.wsgi:application --bind 0.0.0.0:8001"
expose:
- 8001
volumes:
- static_spotifly:/app/spotifly/staticfiles
env_file:
- ./projects/spotifly/.env
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