-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (99 loc) · 1.99 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.3'
services:
redis:
image: redis
ports:
- "6379:6379"
db:
image: postgres
environment:
- POSTGRES_USER=speedpycom
- POSTGRES_PASSWORD=speedpycom
- POSTGRES_DB=speedpycom
ports:
- "21003:5432"
web:
build: .
restart: always
command: python manage.py runserver 0.0.0.0:8060
env_file:
- .env
ports:
- "127.0.0.1:8060:8060"
volumes:
- .:/code
links:
- db
- redis
# - rabbitmq
depends_on:
- db
- redis
# - rabbitmq
media:
image: nginx
volumes:
- ./media:/usr/share/nginx/html
ports:
- "8065:80"
# rabbitmq:
# image: rabbitmq
# environment:
# - RABBITMQ_DEFAULT_USER=speedpycom
# - RABBITMQ_DEFAULT_PASS=speedpycom
# - RABBITMQ_DEFAULT_VHOST=speedpycom
# ports:
# - "21001:5672"
# - "21002:15672"
# celery:
# build: .
# restart: always
# command: celery -A project.celeryapp:app worker -Q default -n speedpycom.%%h --loglevel=INFO --max-memory-per-child=512000 --concurrency=1
# env_file:
# - .env
# volumes:
# - .:/code
# links:
# - db
# - redis
## - rabbitmq
# depends_on:
# - db
# - redis
## - rabbitmq
#
# celery-beat:
# build: .
# restart: always
# command: celery -A project.celeryapp:app beat -S redbeat.RedBeatScheduler --loglevel=DEBUG --pidfile /tmp/celerybeat.pid
# env_file:
# - .env
# volumes:
# - .:/code
# links:
# - db
# - redis
## - rabbitmq
# depends_on:
# - db
# - redis
## - rabbitmq
#
# celery-flower:
# build: .
# restart: always
# command: celery -A project.celeryapp:app flower --loglevel=DEBUG --port=9090 --basic_auth=speedpycom:testpassword
# ports:
# - "127.0.0.1:9090:9090"
# env_file:
# - .env
# volumes:
# - .:/code
# links:
# - db
# - redis
## - rabbitmq
# depends_on:
# - db
# - redis
## - rabbitmq