onstuimig/apache

By onstuimig

Updated 3 months ago

Dev server apache

Image
0

2.5K

Example use:

docker-compose.yml

version: '3.7'

services:
  apache:
    build:
      context: ./docker/apache
      args:
        domain: domain1.test
        extra_alt_names: |-
          DNS.3=domain2.test
          DNS.4=domain3.test
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./www:/var/www/html:delegated
      - ./docker/apache/ssl:/var/ssl-storage:delegated

/docker/apache/Dockerfile

FROM onstuimig/apache:2.4

ARG domain=default.test
ARG extra_alt_names=

ENV ARG_DOMAIN=${domain}
ENV ARG_EXTRA_ALT_NAMES=${extra_alt_names}

RUN setSignedCert -d "${domain}" -e "${extra_alt_names}"

Docker Pull Command

docker pull onstuimig/apache