blob: a1d8968eb87274489d6d775713e93f02bf322bc7 [file] [log] [blame]
Stephane Barbarie01919662017-04-24 15:04:23 -04001version: '2'
2services:
3 database_data:
4 image: tianon/true
5 volumes:
6 - /var/lib/postgresql/data
7
8 database:
9 image: postgres:9.6.1
10 env_file:
11 - ./opennms/env/postgres.env
12 ports:
13 - "15432:5432"
14 depends_on:
15 - database_data
16 volumes_from:
17 - database_data:rw
18
19 opennms_data:
20 image: tianon/true
21 volumes:
22 - /var/log/opennms
23 - /var/opennms/rrd
24 - /var/opennms/reports
25
26 opennms:
27 build: ./opennms
28 env_file:
29 - ./opennms/env/opennms.env
30 - ./opennms/env/postgres.env
31 depends_on:
32 - database
33 - opennms_data
34 volumes_from:
35 - opennms_data:rw
36 volumes:
37 - ./opennms/etc:/tmp/opennms/etc
38 ports:
39 - "8980:8980"
40 - "18980:18980"
41 - "1099:1099"
42 - "18101:8101"
43 - "61616:61616"
44 - "5817:5817"
45 - "162:162/udp"