forked from curityio/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (74 loc) · 1.93 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.7"
services:
curity:
container_name: idsvr
environment:
PASSWORD: "Password1"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "Password1"
image: curity.azurecr.io/curity/idsvr:latest
ports:
- "6749:6749"
- "4466:4466"
- "8443:8443"
volumes:
- ./config/idsvr/license.json:/opt/idsvr/etc/init/license/license.json
- ./config/idsvr/basic_config.xml:/opt/idsvr/etc/init/basic_config.xml
- ./config/idsvr/example_config.xml:/opt/idsvr/etc/init/example_config.xml
links:
- curity-data
networks:
demonetwork:
aliases:
- idsvr
curity-data:
container_name: database
image: postgres:14.5
ports:
- 5432:5432
volumes:
- ./config/postgresql/data:/var/lib/postgresql/data
- ./config/postgresql/create-database.sql:/docker-entrypoint-initdb.d/create-database.sql
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "Password1"
POSTGRES_DB: "idsvr"
networks:
demonetwork:
aliases:
- database
prometheus:
container_name: prometheus
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
links:
- curity
networks:
demonetwork:
aliases:
- prometheus
grafana:
container_name: grafana
image: grafana/grafana-oss
ports:
- "3000:3000"
environment:
- GF_PATHS_CONFIG=/etc/grafana/custom.ini
volumes:
- ./config/grafana/custom.ini:/etc/grafana/custom.ini
- ./config/grafana/provisioning/:/etc/grafana/provisioning/
- type: bind
source: ./config/grafana/dashboard.json
target: /var/lib/grafana/dashboards/curity/idsvr-dashboard.json
links:
- prometheus
networks:
demonetwork:
aliases:
- grafana
networks:
demonetwork:
name: metrics-demo-net