PHP web app base image with consul agent
2.2K
Base PHP Image for application with consul agent
Dockerfile example:
FROM e96tech/baseimage-php:php7
ADD some-service.json /etc/consul/conf.d/
ADD some-nginx.conf /etc/nginx/sites-enabled/
ADD pool.conf /etc/php/7.0/fpm/pool.d/
Consul host resolved either from CONSUL_HOST env var or default gateway
Put your .json configuration files to /etc/consul/conf.d/
Example file:
{
"service" : {
"name" : "some-php-app",
"tags": [
"http",
],
"port" : 80
},
"checks" : [
{
"id" : "fpm",
"service_id" : "some-php-app",
"http" : "http://localhost/fpm_status",
"interval" : "10s"
}
]
}
/etc/php/7.0/fpm/pool.d//etc/nginx/sites-enabled/Content type
Image
Digest
Size
196.5 MB
Last updated
almost 11 years ago
docker pull e96tech/baseimage-php