forked from arbor/sp-api-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
35 lines (35 loc) · 1.27 KB
/
docker-compose.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
version: "3.9"
services:
grafana:
image: grafana/grafana:9.2.0
ports:
- "3000:3000"
volumes:
- ${PWD}/grafana/provisioning/postgres.yaml:/etc/grafana/provisioning/datasources/postgres.yaml
- ${PWD}/grafana/provisioning/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ${PWD}/grafana/dashboards/Sightline.json:/var/lib/grafana/dashboards/Sightline.json
depends_on:
- postgres
postgres:
image: postgres:14
environment:
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
sp-ingest:
image: python:3.10-alpine
volumes:
- ${PWD}/sp-ingest/requirements.txt:/requirements.txt
- ${PWD}/sp-ingest/src:/src
command: sh -c "pip install -r requirements.txt && python3 src/python_middleware.py"
environment:
- SL_LEADER
- SL_APITOKEN
- SL_INITIAL_ALERT_DAYS=${SL_INITIAL_ALERT_DAYS:-30}
- SL_UPDATE_ALERT_MINUTES=${SL_UPDATE_ALERT_MINUTES:-1440}
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
depends_on:
- postgres