-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
74 lines (74 loc) · 1.79 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: '2'
volumes:
data-postgres:
driver: "local"
data-opennms:
driver: "local"
data-opennms-grafana-plugin:
driver: "local"
networks:
onms-net:
driver: bridge
services:
database:
image: postgres:9.6.1
container_name: opennms-postgresql
environment:
- TZ=Europe/Berlin
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- data-postgres:/var/lib/postgresql/data
networks:
- onms-net
opennms:
image: opennms/horizon-core-web:19.1.0-1
container_name: opennms-horizon-core-web
cap_add:
- NET_ADMIN
environment:
- TZ=Europe/Berlin
- OPENNMS_DBNAME=opennms
- OPENNMS_DBUSER=opennms
- OPENNMS_DBPASS=opennms
- OPENNMS_HOME=/opt/opennms
- OPENNMS_DB_CONFIG=/opt/opennms/etc/opennms-datasources.xml
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
depends_on:
- database
volumes:
- data-opennms:/opennms-data
networks:
- onms-net
command: ["-s"]
ports:
- "8980:8980"
- "18980:18980"
- "1099:1099"
- "8101:8101"
- "61616:61616"
- "5817:5817"
- "162:162/udp"
opennms-grafana-plugin:
build:
context: ./
dockerfile: Dockerfile
args:
OPENNMS_GRAFANA_PLUGIN_GIT_URL: https://github.com/OpenNMS/grafana-plugin.git
OPENNMS_GRAFANA_PLUGIN_BRANCH_REF: master
image: grafana-plugin:master
volumes:
- data-opennms-grafana-plugin:/var/lib/grafana
- data-opennms-grafana-plugin:/var/log/grafana
- data-opennms-grafana-plugin:/etc/grafana
networks:
- onms-net
ports:
- "3000:3000"