blob: 293d58a16f7b26d59ef8f9f574deb272c94dee25 [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040014version: '2'
15services:
16 database_data:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080017 image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040018 volumes:
19 - /var/lib/postgresql/data
20
21 database:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080022 image: "${REGISTRY}postgres:${POSTGRES_TAG:-9.6.1}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040023 env_file:
24 - ./opennms/env/postgres.env
25 ports:
26 - "15432:5432"
27 depends_on:
28 - database_data
29 volumes_from:
30 - database_data:rw
31
32 opennms_data:
David K. Bainbridgebba65ff2018-01-19 09:26:09 -080033 image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040034 volumes:
35 - /var/log/opennms
36 - /var/opennms/rrd
37 - /var/opennms/reports
38
39 opennms:
David K. Bainbridge737b74f2018-01-22 12:57:52 -080040 image: "${REGISTRY}${REPOSITORY}voltha-opennms:${TAG:-latest}"
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040041 env_file:
42 - ./opennms/env/opennms.env
43 - ./opennms/env/postgres.env
44 depends_on:
45 - database
46 - opennms_data
47 volumes_from:
48 - opennms_data:rw
49 volumes:
50 - ./opennms/etc:/tmp/opennms/etc
51 ports:
52 - "8980:8980"
53 - "18980:18980"
54 - "1099:1099"
55 - "18101:8101"
56 - "61616:61616"
57 - "5817:5817"
58 - "162:162/udp"