forked from dennis-tra/nebula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (74 loc) · 1.92 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
version: "3.9"
services:
nebula_crawler:
image: wcgcyx/nebula-crawler:latest
container_name: nebula_crawler
user: nebula
entrypoint: [ "./docker-entrypoint.sh" ]
environment:
NEBULA_DATABASE_HOST: postgres
NEBULA_DATABASE_PORT: 5432
NEBULA_DATABASE_NAME: nebula
NEBULA_DATABASE_USER: nebula
NEBULA_DATABASE_PASSWORD: password # TODO: unsafe
NEBULA_CRAWL_PERIOD: 1800
NEBULA_SAVE_NEIGHBOURS: 1
NEBULA_NOT_TRUNCATE_NEIGHBOURS: 0
NEBULA_SAVE_CONNECTIONS: 1
NEBULA_NOT_TRUNCATE_CONNECTIONS: 0
depends_on:
postgres:
condition: service_healthy
networks:
nebula:
postgres:
image: postgres:13
container_name: nebula_db
restart: always
user: postgres
ports:
- 5432:5432
volumes:
- psql_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nebula"]
interval: 10s
timeout: 5s
retries: 20
environment:
POSTGRES_PASSWORD: password # TODO: unsafe
POSTGRES_USER: nebula
POSTGRES_DB: nebula
networks:
nebula:
prometheus:
container_name: nebula_prometheus
image: prom/prometheus:v2.28.0
restart: always
ports:
- 9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
networks:
nebula:
grafana: # default - user: admin, pw: admin
container_name: nebula_grafana
image: grafana/grafana:7.5.9
restart: always
ports:
- 3000:3000
volumes:
- ./grafana-datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./grafana-dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml
- ./dashboards:/var/lib/grafana/dashboards
- grafana_data:/var/lib/grafana
networks:
nebula:
networks:
nebula:
name: nebula
volumes:
psql_data: {}
prometheus_data: {}
grafana_data: {}