forked from alerta/docker-alerta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
51 lines (47 loc) · 1.4 KB
/
docker-compose.test.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
version: '3'
services:
sut:
build:
context: .
args:
VCS_REF: ${VCS_REF}
VERSION: ${VERSION}
# image: alerta/alerta-web
ports:
- 8080
depends_on:
- db
environment:
# - DEBUG=1 # remove this line to turn DEBUG off
- LOG_LEVEL=error # debug, info, warn (default), or error
- SECRET_KEY=super-secret
- DATABASE_URL=postgres://postgres:postgres@db:5432/monitoring
- AUTH_REQUIRED=tRuE
- [email protected],[email protected] # default password: alerta
- ADMIN_KEY=demo-key
- ADMIN_KEY_MAXAGE=31536000 # 1 year in seconds
- PLUGINS=reject,blackout,normalise,enhance
- HK_EXPIRED_DELETE_HRS=39
- HK_INFO_DELETE_HRS=17
- HEARTBEAT_SEVERITY=warning
# Disable Housekeeping by setting one or both of HK env vars to a empty string
# - HK_EXPIRED_DELETE_HRS=
# - HK_INFO_DELETE_HRS=
# Disable hearbeat alerts by setting below env var to empty string
# - HEARTBEAT_SEVERITY=
tester:
image: curlimages/curl:latest
volumes:
- ./wait-for:/wait-for
- ./tests.sh:/tests.sh
depends_on:
- sut
command: sh -c './wait-for sut:8080 -t 240 -- ./tests.sh'
db:
image: postgres
volumes:
- ./pg-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: monitoring
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres