onstuimig/webserver

By onstuimig

Updated almost 4 years ago

Default dev server

Image

682

Example use:

docker-compose.yml

version: '2'

services:
  webserver:
    build:
      context: ./docker/webserver
      args:
        domain: domain1.host
        extra_alt_names: DNS.3=domain2.host\nDNS.4=domain3.host
    container_name: test_web
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./www:/var/www/html

/docker/webserver/Dockerfile

FROM onstuimig/webserver:php7.1

ARG domain=default.host
ARG extra_alt_names=

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

COPY php.ini /usr/local/etc/php/

RUN service apache2 restart

Docker Pull Command

docker pull onstuimig/webserver