Sign inSign up

inventis/httpd

By inventis

Updated almost 5 years ago

apache container with support for https only

Image
0

50K+

inventis/httpd repository overview

Apache container

Usage

You can specify an environment variable CERT_DOMAIN to tell the entrypoint for what domain you'd like to generate certificates You can optionally generate certificates and mount them into the container, You can do that once (wildcard), store them on your host and then reuse them for every container or regenerate individual certs. mkcert is a tool wich you can use for creating valid local SSL certificates.

Docker Compose

Below you can find an example config for the docker compose configuration that is linked to an inventis/php container

    ...
    httpd:
        image: inventis/httpd:2.4
        links:
            - php
        volumes:
            - './:/var/www/app:cached'
            # uncomment (and adjust) below lines if you choose to use your own certificates
            # - ~/.ssl/example.crt:/usr/local/apache2/conf/server.crt
            # - ~/.ssl/example.key:/usr/local/apache2/conf/server.key
        ports:
            - "80:80"  # You can change the port before the semicolon
            - "443:443" # You can change the port before the semicolon
        environment:
            DOCUMENT_ROOT: /var/www/app/<YOUR PROJECTS PUBLIC DIR>
            PHP_FPM_SOCKET: php:9000
            CERT_DMAIN: my.domain.be # not needed if you generate your own
    ...

Tag summary

Content type

Image

Digest

Size

40.7 MB

Last updated

over 7 years ago

docker pull inventis/httpd