Example of running a PHP app.
See docker-compose.yaml for the containers.
frontend
- HTTP server that forwards application requests to php using fastcgi.phpfpm
- Handles running the php application using php-fpm. The php application is in example. App is written using twirphpstatsd
- stastd_exporter - the php app uses statsd to record metrics.otel
- opentelemetry-collector - accepts traces from the php and Go processes. Accepts metrics from Go. Scrapes the statsd_exporter prometheus metrics.
Everything logs to stdout/stderr.
- simple sqlite interaction
- sqlite replication using litestream
- HTTP/1 -> 2 proxy example.
- general code cleanup. This was written hastily to play with a few ideas.