forked from JasonRivers/Docker-Nagios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
26 lines (23 loc) · 992 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
# This compose file acts as an example on using docker volumes for nagios
# configuration. As nagios configurations are different for each site they are
# not considered part of the container image. The best way to deal with the
# configurations is to store them in a volume allowing the user to upgrade the
# image without the need to extract the site configuration from the container.
version: '3'
services:
nagios:
container_name: nagios
image: "capruro/nagios:latest-arm64"
network_mode: bridge
ports:
- "8080:80"
volumes:
- /home/ubuntu/containers/nagios/etc/:/opt/nagios/etc/
- /home/ubuntu/containers/nagios/var:/opt/nagios/var/
- /home/ubuntu/containers/nagios/plugins:/opt/Custom-Nagios-Plugins
- /home/ubuntu/containers/nagios/nagiosgraph/var:/opt/nagiosgraph/var
- /home/ubuntu/containers/nagios/nagiosgraph/etc:/opt/nagiosgraph/etc
restart: unless-stopped
environment:
- NAGIOS_TIMEZONE=Europe/Rome