19 Zeilen
462 B
Docker
19 Zeilen
462 B
Docker
FROM prom/alertmanager:v0.25.0
|
|
|
|
# Copy configuration
|
|
COPY alertmanager.yml /etc/alertmanager/alertmanager.yml
|
|
|
|
# Create templates directory
|
|
USER root
|
|
RUN mkdir -p /etc/alertmanager/templates && \
|
|
chown -R nobody:nobody /etc/alertmanager
|
|
|
|
USER nobody
|
|
|
|
# Expose Alertmanager port
|
|
EXPOSE 9093
|
|
|
|
# Start Alertmanager
|
|
CMD ["--config.file=/etc/alertmanager/alertmanager.yml", \
|
|
"--storage.path=/alertmanager", \
|
|
"--web.external-url=http://localhost:9093"] |