-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
159 lines (140 loc) · 3.13 KB
/
docker-compose.yaml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3"
services:
billing-service:
extends:
file: docker-compose-billing.yaml
service: billing-service
volumes:
- ./src:/opt/admin
environment:
DJANGO_ADMIN_BILLING_DEBUG: "True"
ports:
- 8000:8000
celery:
extends:
file: docker-compose-billing.yaml
service: celery
environment:
DJANGO_ADMIN_BILLING_DEBUG: "True"
profiles:
- celery
flower:
extends:
file: docker-compose-billing.yaml
service: flower
profiles:
- celery
auth_service:
extends:
file: docker-compose-auth.yaml
service: auth_service
volumes:
- ./auth_service/src:/home/app
environment:
AUTH_DEBUG: "True"
AUTH_PROJECT_ROOT_URL:
ports:
- 8001:8000
profiles:
- auth
- notification
notification-api:
extends:
file: docker-compose-notification.yaml
service: notification-api
volumes:
- "./notification_service/notification_api/src:/opt/app/"
environment:
NOTIFY_DEBUG: "True"
NOTIFY_LOGGING_LEVEL: "DEBUG"
NOTIFY_PROJECT_ROOT_URL:
ports:
- 8002:8001
profiles:
- notification
notification_admin:
extends:
file: docker-compose-notification.yaml
service: notification_admin
volumes:
- "./notification_service/admin:/opt/admin/"
environment:
DJANGO_ADMIN_NF_DEBUG: "True"
ports:
- 8003:8000
profiles:
- notification
regular_notify_converter:
extends:
file: docker-compose-notification.yaml
service: regular_notify_converter
profiles:
- notification
notification-notify-sender:
extends:
file: docker-compose-notification.yaml
service: notification-notify-sender
profiles:
- notification
notification-user-provider:
extends:
file: docker-compose-notification.yaml
service: notification-user-provider
profiles:
- notification
notification-rabbit-setup:
extends:
file: docker-compose-notification.yaml
service: notification-rabbit-setup
profiles:
- notification
mailpit:
extends:
file: docker-compose-notification.yaml
service: mailpit
profiles:
- notification
postgres:
extends:
file: docker-compose-common.yaml
service: postgres
environment:
POSTGRES_USER: ${PG_ADMIN_BILLING_USER}
POSTGRES_DB: ${PG_ADMIN_BILLING_PASSWORD}
POSTGRES_PASSWORD: ${PG_ADMIN_BILLING_DB_NAME}
ports:
- 5432:5432
redis:
extends:
file: docker-compose-common.yaml
service: redis
ports:
- 6379:6379
profiles:
- notification
- auth
rabbit:
extends:
file: docker-compose-common.yaml
service: rabbit
profiles:
- celery
- notification
volumes:
db_volume:
static_volume:
media_volume:
worker_data:
flower_data:
secrets:
rsa_pub:
file: ./keys/rsa.pub
rsa_priv:
file: ./keys/rsa.private
service_accounts:
file: ./keys/services.json
configs:
billing_config:
file: ./configs/billing-dev.yaml
templates:
file: ./notification_templates/templates.json