Sign inSign up

smebberson/alpine-consul-apache

By smebberson

Updated almost 10 years ago

Apache with service discovery via Consul on Alpine Linux.

Image
0

6.9K

smebberson/alpine-consul-apache repository overview

alpine-consul-apache

A Docker image for running Apache with Consul, based on Alpine Linux. This image belongs to a suite of images documented here.

Features

This image features:

Versions

See VERSIONS.md for image contents.

Usage

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.

Consul service registration

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.

Example

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.

Tag summary

Content type

Image

Digest

sha256:ea280659e

Size

17.2 MB

Last updated

almost 10 years ago

docker pull smebberson/alpine-consul-apache