forked from alerta/python-alerta-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yaml
47 lines (43 loc) · 1.05 KB
/
docker-compose.ci.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
version: '3.7'
services:
api:
image: docker.pkg.github.com/alerta/alerta/alerta-api:latest
ports:
- "8080: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
- [email protected],[email protected] #default password: alerta
- ADMIN_KEY=demo-key # assigned to first user in ADMIN_USERS list
# - PLUGINS=reject,blackout,normalise,enhance
networks:
net:
aliases:
- api
db:
image: postgres:9.6
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_DB=monitoring
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
restart: always
networks:
net:
aliases:
- db
sut:
build: .
depends_on:
- api
command: ["./wait-for-it.sh", "api:8080", "-t", "60", "--", "pytest", "tests/integration/"]
networks:
net:
aliases:
- sut
networks:
net: {}