Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 2.19 KB

README.md

File metadata and controls

43 lines (28 loc) · 2.19 KB

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.