Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

60 lines (55 sloc) 1.17 KB
version: '2.3'
volumes:
psql.data:
driver: local
opennms.data:
driver: local
opennms.etc:
driver: local
networks:
opennms.net:
driver: bridge
services:
database:
container_name: opennms.psql
image: postgres:10
env_file:
- .postgres.env
networks:
- opennms.net
volumes:
- psql.data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 30s
retries: 3
ports:
- "5432:5432"
opennms:
container_name: opennms.hzn.core.web
image: opennms/horizon-core-web:bleeding
init: true
env_file:
- .opennms.env
- .postgres.env
networks:
- opennms.net
depends_on:
database:
condition: service_healthy
volumes:
- opennms.etc:/opt/opennms/etc
- opennms.data:/opennms-data
- ./etc-overlay:/opt/opennms-etc-overlay
command: ["-s"]
healthcheck:
test: ["CMD", "curl", "-f", "-I", "http://localhost:8980/opennms/login.jsp"]
interval: 1m
timeout: 5s
retries: 3
ports:
- "8980:8980"
- "8101:8101"
- "61616:61616"
- "162:162/udp"
You can’t perform that action at this time.