forked from alerta/docker-alerta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (30 loc) · 880 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
version: '3.1'
services:
web:
build: .
# image: alerta/alerta-web
# volumes:
# - $PWD/config/config.json:/web/config.json
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
- ADMIN_USERS=admin@alerta.io,devops@alerta.io
- ADMIN_PASSWORD=super-secret # default is "alerta"
- ADMIN_KEY=demo-key # assigned to first user in ADMIN_USERS
- ADMIN_KEY_MAXAGE=500
# - PLUGINS=remote_ip,reject,heartbeat,blackout,normalise,enhance
restart: always
db:
image: postgres
volumes:
- ./pg-data:/var/lib/postgresql/data
environment:
POSTGRES_DB: monitoring
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
restart: always