onstuimig/webserver
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
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 onstuimig/webserver