Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 3 | database_data: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 4 | image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 5 | volumes: |
| 6 | - /var/lib/postgresql/data |
| 7 | |
| 8 | database: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 9 | image: "${REGISTRY}postgres:${POSTGRES_TAG:-9.6.1}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 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: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 20 | image: "${REGISTRY}tianon/true:${TRUE_TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 21 | volumes: |
| 22 | - /var/log/opennms |
| 23 | - /var/opennms/rrd |
| 24 | - /var/opennms/reports |
| 25 | |
| 26 | opennms: |
David K. Bainbridge | bba65ff | 2018-01-19 09:26:09 -0800 | [diff] [blame] | 27 | image: "${REGISTRY}voltha/opennms:${TAG:-latest}" |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 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" |