-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.92 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '2.1'
services:
mongodb:
image: docker.io/mongo:5.0.6-focal
restart: unless-stopped
volumes:
- ../nagadmin-containers-data/mongodb:/data/db:rw,cached
# This is a helper directory we use for import/export operations.
# See the `mongodb-dump` and `mongodb-import` Make targets.
- ./var/mongodb-io:/mongodb-io:rw,cached
nginx:
image: docker.io/nginx:1.21.6-alpine
restart: unless-stopped
ports:
- "${NGINX_HTTP_BIND_ADDRESS}:8080"
# Any random non-root user will do
user: 4000:4000
entrypoint: /bin/sh
command: -c 'nginx -g "daemon off;"'
working_dir: /public
volumes:
- ./etc/services/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./etc/services/nginx/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./public:/public:ro,cached
tmpfs:
- /tmp
php:
build: ./etc/docker/php
image: devture/nagadmin-php:8.0.15
# We run PHP with the same user that Nagios runs with, because
# we need it to be able to write to the nagios.cmd file.
user: 100:101
restart: unless-stopped
stop_signal: QUIT
stop_grace_period: 15s
volumes:
- ./:/code:rw,cached
mailer:
image: docker.io/devture/exim-relay:4.95-r0-2
restart: unless-stopped
user: 100:101
tmpfs:
- /var/spool/exim
environment:
HOSTNAME: ${HOSTNAME}
DISABLE_SENDER_VERIFICATION: 1
nagios:
# This is Nagios v4.4.6.
# See https://github.com/manios/docker-nagios/blob/build9/CHANGELOG.md#build-9-2022-01-07
image: docker.io/manios/nagios:build9
restart: unless-stopped
ports:
- "${NAGIOS_HTTP_BIND_ADDRESS}:80"
volumes:
- ./etc/services/nagios/etc:/opt/nagios/etc:rw,cached
- ./var/nagios/var:/opt/nagios/var:rw,cached
- ./var/nagadmin-generated-config:/nagadmin-generated-config:ro,cached
environment:
NAGIOSADMIN_USER: ${NAGIOSADMIN_USER}
NAGIOSADMIN_PASS: ${NAGIOSADMIN_PASS}
TZ: ${TZ}