blob: fe9b349794f6447afe311b5aa21a6a0cf50e1166 [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. Bainbridgebba65ff2018-01-19 09:26:09 -080027 image: "${REGISTRY}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"