forked from alerta/docker-alerta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
41 lines (37 loc) · 1.01 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
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
- DATABASE_URL=postgres://postgres:postgres@db:5432/monitoring
- AUTH_REQUIRED=tRuE
- ADMIN_USERS=admin@alerta.io,devops@alerta.io # default password: alerta
- ADMIN_KEY=demo-key
- ADMIN_KEY_MAXAGE=31536000 # 1 year in seconds
- PLUGINS=reject,blackout,normalise,enhance
tester:
image: tutum/curl:latest
volumes:
- ./wait-for-it.sh:/usr/local/bin/wait-for-it.sh
- ./tests.sh:/tests.sh
depends_on:
- sut
command: ["wait-for-it.sh", "sut:8080", "-t", "240", "--", "sh", "/tests.sh"]
db:
image: postgres
volumes:
- ./pg-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: monitoring
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres