-
Notifications
You must be signed in to change notification settings - Fork 91
/
docker-compose.yml
45 lines (41 loc) · 900 Bytes
/
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
---
version: "2.1"
services:
server:
build:
context: .
env_file: .env
environment:
- GITHUB_WEBHOOKSECRET
- ELASTICSEARCH_URL=http://elasticsearch:9200
depends_on:
elasticsearch:
condition: service_healthy
ports:
- 8080:8080
elasticsearch:
restart: always
image: elasticsearch:5
ports:
- 9200:9200
expose:
- "9200"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:9200"]
interval: 5s
timeout: 3s
retries: 5
elastalert:
# privileged needed for ntpd
privileged: true
build:
context: elastalert
environment:
- GOVUK_NOTIFY_API_KEY
- GOVUK_NOTIFY_TEMPLATE_ID
- NOTIFICATION_EMAILS
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
depends_on:
elasticsearch:
condition: service_healthy