-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
94 lines (86 loc) · 2.23 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
version: '3.2'
services:
backend_file_lint:
container_name: backend_file_lint
build:
context: backend
image: backend_file_lint-python-app:last_build
restart: always
command: sh -c "poetry run gunicorn conf.wsgi:application --bind 0.0.0.0:8000"
depends_on:
- db
volumes:
- static:/lint_checker/static
- media:/lint_checker/media
- ./logs:/lint_checker/logs
env_file:
- .env
db:
container_name: db_file_lint
image: postgres:13.1-alpine
restart: always
environment:
- POSTGRES_USER=lint_checker
- POSTGRES_PASSWORD=lint_checker
- POSTGRES_DB=lint_checker
volumes:
- post_data:/var/lib/postgresql/data/
ports:
- "127.0.0.1:5432:5432"
env_file:
- .env
nginx:
image: nginx:1.19.4-alpine
container_name: nginx_file_lint
restart: always
volumes:
- media:/media
- static:/static
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./logs:/usr/share/nginx/logs
ports:
- "80:80"
depends_on:
- backend_file_lint
rabbitmq_server:
container_name: rabbitmq_file_lint
image: rabbitmq:3-management
ports:
- "127.0.0.1:5672:5672"
mail_worker:
container_name: mail_worker_file_lint
image: backend_file_lint-python-app:last_build
command: bash -c "celery -A conf worker -l INFO -Q mail_notififcation_queue -n celery_mail"
volumes:
- static:/lint_checker/static
- media:/lint_checker/media
env_file:
- .env
depends_on:
- rabbitmq_server
schedule_worker:
container_name: schedule_worker_file_lint
image: backend_file_lint-python-app:last_build
command: bash -c "celery -A conf worker -l INFO -B -n celery_schedule"
volumes:
- static:/lint_checker/static
- media:/lint_checker/media
env_file:
- .env
depends_on:
- rabbitmq_server
flower:
container_name: flower_file_lint
image: backend_file_lint-python-app:last_build
command: bash -c "celery flower"
environment:
- CELERY_BROKER_URL=amqp://rabbitmq_server:5672
- FLOWER_PORT=5555
ports:
- "5555:5555"
depends_on:
- rabbitmq_server
volumes:
post_data:
static:
media: