-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (82 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
92 lines (82 loc) · 2.04 KB
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
version: "3.3"
services:
# NOTE: This docker compose file is for production and only used for building the prod containers.
# To build and push the containers use build_and_push_prod_containers.sh
# For development see docker-compose.dev.yml
emailtidy-db:
container_name: emailtidy-db
env_file:
- .env
image: zimd00d/email-tidy:db
build:
context: ./backend/db
ports:
- 5432:5432
volumes:
- db-data:/var/lib/postgresql/data:cached
emailtidy-py:
container_name: emailtidy-py
env_file:
- .env
image: zimd00d/email-tidy:py
depends_on:
- emailtidy-db
build:
context: ./backend/py
ports:
- 8000:8000
emailtidy-react:
container_name: emailtidy-react
image: zimd00d/email-tidy:react
depends_on:
- emailtidy-py
build:
context: ./frontend
ports:
- 3000:3000
emailtidy-nginx:
container_name: emailtidy-nginx
image: zimd00d/email-tidy:nginx
depends_on:
- emailtidy-react
restart: always
build:
context: ./backend/nginx
ports:
- 80:80
emailtidy-redis:
container_name: emailtidy-redis
image: redis:7.2.1-alpine
emailtidy-celery:
container_name: emailtidy-celery
image: zimd00d/email-tidy:celery
env_file:
- .env
build:
context: ./backend/py
command: celery -A celery_worker.celery worker --loglevel=info
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- emailtidy-py
- emailtidy-redis
emailtidy-flower:
container_name: emailtidy-flower
image: zimd00d/email-tidy:flower
env_file:
- .env
build:
context: ./backend/py
command: celery -A celery_worker.celery flower --port=5555
ports:
- 5556:5555
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- CELERY_RESULT_BACKEND=${CELERY_RESULT_BACKEND}
depends_on:
- emailtidy-py
- emailtidy-redis
- emailtidy-celery
volumes:
db-data: