httpd SSL

# Dockerfile
FROM httpd:latest
RUN sed -i \
		-e 's/^#\(Include .*httpd-ssl.conf\)/\1/' \
		-e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' \
		-e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' \
		conf/httpd.conf
COPY ./ssl/server.crt /usr/local/apache2/conf/server.crt
COPY ./ssl/server.key /usr/local/apache2/conf/server.key

# docker-compose.yaml
version: "3.1"
services:
  httpd:
    build: .
    container_name: httpd-ssl
    expose:
      - 443
    ports:
      - 443:443
    volumes:
      - ./htdocs:/usr/local/apache2/htdocs
    restart: always
Injury