Apache with service discovery via Consul on Alpine Linux.
6.9K
A Docker image for running Apache with Consul, based on Alpine Linux. This image belongs to a suite of images documented here.
This image features:
2.0.0, latest (Dockerfile)1.0.0 (Dockerfile)See VERSIONS.md for image contents.
To use this image include FROM smebberson/alpine-consul-apache at the top of your Dockerfile, or simply docker run -p 80:80 -p 443:443 --name apache smebberson/alpine-consul-apache.
Aside from Consul, this image is the same as alpine-apache. Please refer to usage documentation here.
By default the file at /etc/consul/conf.d/apache.json will register an apache service, on port 80 with Consul. It also registers a 5s health check that reports on the availability of the service. If you'd like to configure perhaps more ports, or change the health check in another way, create a new file that meets the requirements of a Consul service definition and add it (in your Dockerfile) to your image, replacing the already existing apache.json.
An example of using this image can be found in examples/user-consul-apache. This example shows running Apache within a Consul cluster using Docker Compose.
Content type
Image
Digest
sha256:ea280659e…
Size
17.2 MB
Last updated
almost 10 years ago
docker pull smebberson/alpine-consul-apache