Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 1 | version: '2' |
| 2 | services: |
| 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: |
Stephane Barbarie | 95507c4 | 2017-09-19 10:41:04 -0400 | [diff] [blame] | 27 | image: cord/opennms |
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" |