-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
165 lines (154 loc) · 4.37 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
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
160
161
162
163
164
# Needs a .env file.
# A file example.env is provided. Make a copy as '.env' and modify the values as needed.
version: "2.4"
volumes:
alerta_postgres:
networks:
alerta:
name: alerta_net
services:
postgres:
image: postgres:13
container_name: datadope-alerta-postgres
networks:
alerta:
aliases:
- db.alerta.me
volumes:
- alerta_postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
env_file: .env
environment:
POSTGRES_USER: "${POSTGRES_USER:-postgres}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD:-postgres}"
POSTGRES_DB: "${POSTGRES_DB:-monitoring}"
restart: unless-stopped
mem_limit: 4000m
mem_reservation: 1000m
# command: postgres -c "log_statement=all"
redis:
image: redis
container_name: datadope-alerta-redis
networks:
alerta:
aliases:
- redis.alerta.me
ports:
- "6379:6379"
restart: unless-stopped
server:
image: datadope-alerta-server:${VERSION}
build:
context: ..
dockerfile: deployment/alerta.dockerfile
args:
- VERSION=${VERSION}
container_name: datadope-alerta-server
networks:
alerta:
aliases:
- server.alerta.me
depends_on:
- postgres
- redis
ports:
- "8001:8000"
env_file: .env
environment:
VERSION: ${VERSION}
PGUSER: "${POSTGRES_USER:-postgres}"
PGPASSWORD: "${POSTGRES_PASSWORD:-postgres}"
DATABASE_URL: "iometrics://postgres/${POSTGRES_DB:-monitoring}?connect_timeout=10&application_name=alerta"
CELERY_BROKER_URL: redis://redis:6379/0
webui:
image: datadope-alerta-webui
build:
context: ..
dockerfile: deployment/webui.dockerfile
args:
VERSION: ${VERSION}
container_name: datadope-alerta-webui
networks:
alerta:
depends_on:
- server
ports:
- "8000:8000"
environment:
ALERTA_WEBUI_PORT: 8000
ALERTA_SERVER_ENDPOINT: "${ALERTA_SERVER_ENDPOINT:-http://localhost:8001}"
celery-worker:
image: datadope-alerta-celery:${VERSION}
build:
context: ..
dockerfile: deployment/celery.dockerfile
args:
VERSION: ${VERSION}
networks:
alerta:
depends_on:
- postgres
- redis
- server
env_file: .env
environment:
VERSION: ${VERSION}
PGUSER: "${POSTGRES_USER:-postgres}"
PGPASSWORD: "${POSTGRES_PASSWORD:-postgres}"
DATABASE_URL: "iometrics://postgres/${POSTGRES_DB:-monitoring}?connect_timeout=10&application_name=alerta"
CELERY_BROKER_URL: redis://redis:6379/0
ALERTACLIENT_CONFIGURATION__ENDPOINT: http://server:8000
ALERTACLIENT_CONFIGURATION__KEY: "${API_KEY}"
ALERTACLIENT_CONFIGURATION__SSL_VERIFY: "false"
ALERTACLIENT_CONFIGURATION__TIMEOUT: "20.0"
celery-beat:
image: datadope-alerta-celery:${VERSION}
build:
context: ..
dockerfile: deployment/celery.dockerfile
args:
VERSION: ${VERSION}
container_name: datadope-alerta-celery-beat
networks:
alerta:
depends_on:
- postgres
- redis
- server
command: entry_point_celery_beat.sh
env_file: .env
environment:
VERSION: ${VERSION}
PGUSER: "${POSTGRES_USER:-postgres}"
PGPASSWORD: "${POSTGRES_PASSWORD:-postgres}"
DATABASE_URL: "iometrics://postgres/${POSTGRES_DB:-monitoring}?connect_timeout=10&application_name=alerta"
CELERY_BROKER_URL: redis://redis:6379/0
ALERTACLIENT_CONFIGURATION__ENDPOINT: http://server:8000
ALERTACLIENT_CONFIGURATION__KEY: "${API_KEY}"
celery-flower:
image: datadope-alerta-celery:${VERSION}
build:
context: ..
dockerfile: deployment/celery.dockerfile
args:
VERSION: ${VERSION}
container_name: datadope-alerta-celery-flower
networks:
alerta:
depends_on:
- postgres
- redis
- server
command: entry_point_celery_flower.sh
ports:
- "5555:5555"
env_file: .env
environment:
VERSION: ${VERSION}
PGUSER: "${POSTGRES_USER:-postgres}"
PGPASSWORD: "${POSTGRES_PASSWORD:-postgres}"
DATABASE_URL: "iometrics://postgres/${POSTGRES_DB:-monitoring}?connect_timeout=10&application_name=alerta"
CELERY_BROKER_URL: redis://redis:6379/0
ALERTACLIENT_CONFIGURATION__ENDPOINT: http://server:8000
ALERTACLIENT_CONFIGURATION__KEY: "${API_KEY}"