-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
42 lines (35 loc) · 1.03 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
version: '3'
services:
web:
build: .
command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
- "8099:8000"
depends_on:
- rabbitmq
# - migration
migration:
build: .
command: bash -c "python manage.py makemigrations smsApp && python manage.py migrate"
# volumes:
# - .:/code
celery:
build: .
command: celery -A smsApi worker --beat --scheduler django --loglevel=info
volumes:
- .:/code
depends_on:
- rabbitmq
# celery-beat:
# build: .
# command: $ celery -A [project-name] worker --beat --scheduler django --loglevel=info
# volumes:
# - .:/code
# depends_on:
# - rabbitmq
rabbitmq:
image: rabbitmq:3.7
#celery -A smsApi beat -l info
#celery -A smsApi beat -l info --scheduler django_celery_beat.schedulers:DatabaseScheduler