opentelemetry-php/docker-compose.prometheus.yaml

34 lines
702 B
YAML

version: '3.7'
services:
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
redis:
image: redis
ports:
- 6379:6379
web:
image: nginx:alpine
ports:
- 8080:80
depends_on:
- php
volumes:
- ./docker/examples/nginx.conf:/etc/nginx/conf.d/default.conf:ro
php:
build:
context: .
dockerfile: docker/examples/Dockerfile
args:
- PHP_VERSION=8.0-fpm
- EXT_ENABLE=redis
volumes:
- ./examples/prometheus/index.php:/var/www/public/index.php
- ./:/php
depends_on:
- redis
- prometheus