-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (48 loc) · 971 Bytes
/
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
version: '3.8'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
depends_on:
- db
- redis
db:
image: postgres:13
environment:
POSTGRES_USER: dj_commerce_api_uzzal
POSTGRES_PASSWORD: dj_commerce_api_testpass123
POSTGRES_DB: dj_commerce_api
redis:
image: "redis:6"
ports:
- "6379:6379"
celery:
build: .
command: celery -A core worker -l info -E
depends_on:
- db
- redis
celery_beat:
build: .
command: celery -A core beat -l info
depends_on:
- db
- redis
flower:
build: .
command: celery -A core flower
ports:
- "5555:5555"
environment:
CELERY_BROKER_URL: redis://redis:6379/0
CELERY_RESULT_BACKEND: redis://redis:6379/0
depends_on:
- celery
- redis
mailhog:
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"