forked from jpklzm/youtube-audio-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (66 loc) · 1.86 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
postgresql:
image: jcalazan/postgresql
environment:
- POSTGRESQL_DB=youtubeadl
- POSTGRESQL_USER=youtubeadl
- POSTGRESQL_PASSWORD=password
volumes:
- ~/dockerfiles/youtube-audio-dl/postgresql:/var/lib/postgresql
ports:
- "5432:5432"
rabbitmq:
image: jcalazan/rabbitmq
ports:
- "15672:15672"
# NOTES:
# - The C_FORCE_ROOT variable allows celery to run as the root user.
celery:
image: jcalazan/django
environment:
- C_FORCE_ROOT=true
- DATABASE_HOST=postgresql
- BROKER_URL=amqp://guest:guest@rabbitmq//
working_dir: /youtube-audio-dl
command: bash -c "sleep 3 && celery -A youtubeadl worker -E -l info --concurrency=3"
volumes:
- .:/youtube-audio-dl
- ~/dockerfiles/youtube-audio-dl/python:/usr/local/lib/python2.7
- ~/dockerfiles/youtube-audio-dl/bin:/usr/local/bin
links:
- postgresql
- rabbitmq
# NOTES:
# - The C_FORCE_ROOT variable allows celery to run as the root user.
flower:
image: jcalazan/django
environment:
- C_FORCE_ROOT=true
- DATABASE_HOST=postgresql
- BROKER_URL=amqp://guest:guest@rabbitmq//
working_dir: /youtube-audio-dl
command: bash -c "sleep 3 && celery -A youtubeadl flower --port=5555"
volumes:
- .:/youtube-audio-dl
- ~/dockerfiles/youtube-audio-dl/python:/usr/local/lib/python2.7
- ~/dockerfiles/youtube-audio-dl/bin:/usr/local/bin
ports:
- "5555:5555"
links:
- postgresql
- rabbitmq
django:
image: jcalazan/django
environment:
- DATABASE_HOST=postgresql
- BROKER_URL=amqp://guest:guest@rabbitmq//
working_dir: /youtube-audio-dl
command: bash -c "sleep 3 && python manage.py runserver_plus 0.0.0.0:80"
volumes:
- .:/youtube-audio-dl
- ~/dockerfiles/youtube-audio-dl/python:/usr/local/lib/python2.7
- ~/dockerfiles/youtube-audio-dl/bin:/usr/local/bin
ports:
- "80:80"
links:
- postgresql
- rabbitmq