-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (70 loc) · 1.35 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
71
72
73
74
75
76
version: '3.8'
volumes:
redis_data:
services:
web:
build: .
command: python /code/manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- target: 8000
published: 8000
protocol: tcp
mode: host
depends_on:
- redis
restart: always
redis:
image: redis:6.0.9-alpine
command:
redis-server
ports:
- target: 6379
published: 6380
protocol: tcp
mode: host
volumes:
- redis_data:/data
restart: always
environment:
- REDIS_REPLICATION_MODE=master
celery:
build: .
command: celery -A short_urls worker --loglevel=INFO -E
restart: always
environment:
- C_FORCE_ROOT=1
volumes:
- .:/code
links:
- redis
depends_on:
- web
- redis
hostname: celery-main
celery-beat:
build: .
command: celery -A short_urls beat --loglevel=INFO --pidfile=
restart: always
volumes:
- .:/code
depends_on:
- web
- redis
hostname: celery-beat
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis:6379/3
- FLOWER_PORT=8888
depends_on:
- celery
- celery-beat
- redis
restart: always
ports:
- target: 8888
published: 8888
protocol: tcp
mode: host