This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
stack/docker-compose.yml

28 lines
642 B
YAML
Raw Permalink Normal View History

2020-04-02 13:20:50 +00:00
version: "3.7"
services:
2020-05-05 14:19:06 +00:00
nagios:
image: jasonrivers/nagios:latest
deploy:
placement:
2020-05-05 16:24:28 +00:00
constraints: [node.labels.com.sigyl.git-stack == yes]
2020-05-05 14:19:06 +00:00
replicas: 1
restart_policy:
condition: any
2020-05-05 17:46:24 +00:00
environment:
2020-05-05 17:52:40 +00:00
- NAGIOSADMIN_USER=${NAGIOS_ADMIN_USER}
- NAGIOSADMIN_PASS=${NAGIOS_ADMIN_PASSWORD}
2020-05-05 16:29:12 +00:00
volumes:
2020-05-05 18:14:17 +00:00
- ./nagios/conf.d:/opt/nagios/etc/conf.d/
- ./nagios/contacts/contacts.cfg:/opt/nagios/etc/objects/contacts.cfg
2020-05-05 14:19:06 +00:00
networks:
- appnet
2020-05-08 09:28:32 +00:00
- externalnet
2020-07-08 16:36:32 +00:00
2020-04-02 13:20:50 +00:00
networks:
appnet:
driver: overlay
#external: true
2020-05-07 20:11:45 +00:00
externalnet:
driver: overlay
external: true