-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Dockerfile — IT-Stack ZABBIX wrapper
# Module 19 | Category: infrastructure | Phase: 4
# Base image: zabbix/zabbix-server-pgsql:alpine-6.4-latest
FROM zabbix/zabbix-server-pgsql:alpine-6.4-latest
# Labels
LABEL org.opencontainers.image.title="it-stack-zabbix" \
org.opencontainers.image.description="Zabbix infrastructure monitoring" \
org.opencontainers.image.vendor="it-stack-dev" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.source="https://github.com/it-stack-dev/it-stack-zabbix"
# Copy custom configuration and scripts
COPY src/ /opt/it-stack/zabbix/
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
CMD curl -f http://localhost/health || exit 1
ENTRYPOINT ["/entrypoint.sh"]