forked from microapidev/email-microapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 842 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
version: '3.4'
services:
teamfiercebackendpython:
image: teamfiercebackendpython
build:
context: .
dockerfile: Dockerfile
ports:
- 5412:8000
broker:
image: rabbitmq:latest
hostname: broker
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672"
worker:
build:
context: .
dockerfile: Dockerfile
restart: "no"
command: celery -A send_email_microservice worker -l info
volumes:
- .:/code
depends_on:
- teamfiercebackendpython
- broker
djangoq:
build:
context: .
dockerfile: Dockerfile
restart: "no"
command: python manage.py qcluster
volumes:
- .:/code
depends_on:
- teamfiercebackendpython
- broker
- worker