-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (43 loc) · 1004 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (43 loc) · 1004 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
40
41
42
43
version: '2'
services:
mongo:
image: mongo
# volumes:
# - ./mongodata:/data/db
redis:
image: redis
celery:
build: .
environment:
- MONGO_HOST=mongo
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- C_FORCE_ROOT=true
command: celery -A tasks worker -B --loglevel=info
volumes:
- ./hackernews/hackernewsclone:/hackernewsclone
depends_on:
- redis
hackernewsclone:
build: .
command: python hackernews.py
volumes:
- ./hackernews/hackernewsclone:/hackernewsclone
ports:
- "5000:5000"
environment:
- MONGO_HOST=mongo
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- mongo
- redis
- celery
monitor:
build: .
ports:
- "5555:5555"
#entrypoint: flower
command: flower -A tasks --port=5555 --broker=redis://redis:6379/0
depends_on:
- redis