Change php-fpm to listen on :9000 to expose prometheus metrics via php-fpm_exporter

This commit is contained in:
Leonard Jonathan Oh 2023-03-14 13:21:48 +00:00
parent c117d8baa1
commit 47072710b2
7 changed files with 48 additions and 6 deletions

View file

@ -1,7 +1,7 @@
version: '2'
services:
snappymail:
image: leojonathanoh/snappymail:merge
image: leojonathanoh/snappymail:pr-1
ports:
- 8888:8888
volumes:
@ -10,6 +10,16 @@ services:
- default
restart: unless-stopped
# This provides prometheus metrics for snappymail's php-fpm
php-fpm-exporter:
image: hipages/php-fpm_exporter:2.2.0
ports:
- 9253:9253
environment:
- PHP_FPM_SCRAPE_URI=tcp://snappymail:9000/status
networks:
- default
networks:
default: