-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-notification.yaml
124 lines (115 loc) · 2.8 KB
/
docker-compose-notification.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
version: "3.4"
services:
notification_admin:
build:
context: notification_service/admin
args:
- COMMAND=admin
env_file:
- .env
environment:
PG_ADMIN_NF_DB_HOST: ${PG_ADMIN_NF_DB_HOST:-postgres}
PG_ADMIN_NF_DB_PORT: ${PG_ADMIN_NF_DB_PORT:-5432}
AUTH_RSA_PUBLIC_PATH: /run/secrets/rsa_pub
depends_on:
- postgres
expose:
- 8000
secrets:
- rsa_pub
configs:
- source: templates
target: /opt/admin/cli/templates.json
regular_notify_converter:
build:
context: notification_service/admin
args:
- COMMAND=celery
restart: always
env_file:
- .env
environment:
PG_ADMIN_NF_DB_HOST: ${PG_ADMIN_NF_DB_HOST:-postgres}
PG_ADMIN_NF_DB_PORT: ${PG_ADMIN_NF_DB_PORT:-5432}
AUTH_RSA_PUBLIC_PATH: /run/secrets/rsa_pub
depends_on:
- postgres
- notification_admin
- redis
secrets:
- rsa_pub
notification-api:
build:
context: notification_service/notification_api
restart: on-failure
env_file:
- .env
depends_on:
rabbit:
condition: service_healthy
postgres:
condition: service_started
environment:
API_RABBIT_HOST: ${API_RABBIT_HOST:-rabbit}
API_RABBIT_PORT: ${API_RABBIT_PORT:-5672}
API_POSTGRES_HOST: ${API_POSTGRES_HOST:-postgres}
API_POSTGRES_PORT: ${API_POSTGRES_PORT:-5432}
API_PROJECT_ROOT_URL: /
expose:
- 8001
notification-notify-sender:
build:
context: notification_service/notification_service
args:
- COMMAND=notify
env_file:
- .env
depends_on:
rabbit:
condition: service_healthy
mailpit:
condition: service_started
notification-rabbit-setup:
condition: service_completed_successfully
notification-user-provider:
build:
context: notification_service/notification_service
args:
- COMMAND=user
env_file:
- .env
depends_on:
rabbit:
condition: service_healthy
postgres:
condition: service_healthy
notification-rabbit-setup:
condition: service_completed_successfully
auth_service:
condition: service_healthy
notification-rabbit-setup:
build:
context: notification_service/notification_service
args:
- COMMAND=rabbit
env_file:
- .env
depends_on:
rabbit:
condition: service_healthy
mailpit:
container_name: mailpit
restart: on-failure
image: axllent/mailpit:latest
environment:
- MP_SMTP_AUTH_ALLOW_INSECURE=true
- MP_SMTP_AUTH_ACCEPT_ANY=true
ports:
- "8025:8025"
- "1025:1025"
secrets:
rsa_pub:
file: ./keys/rsa.pub
configs:
templates:
file: ./notification_templates/templates.json