blob: 3fae37a7d724c3805af04ebf82a40040579db031 [file] [log] [blame]
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -04001version: '2'
2services:
3 database_data:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -08004 image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -04005 volumes:
6 - /var/lib/postgresql/data
7
8 database:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -08009 image: "${REGISTRY}postgres:${POSTGRES_TAG:-9.6.1}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040010 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:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080020 image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040021 volumes:
22 - /var/log/opennms
23 - /var/opennms/rrd
24 - /var/opennms/reports
25
26 opennms:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080027 image: "${REGISTRY}${REPOSITORY}voltha-opennms:${TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040028 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"