Notez comment créer un auto-certificat avec l'Apache de Docker
Voir l'article ci-dessous [Linux] Construction de l'environnement Docker sur Redhat
version: '3'
services:
  apache:
    build: apache
    container_name: apache
    ports:
      - 80:80
    volumes:
      - ./apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
apache
FROM httpd:latest
RUN apt update \
    && apt install -y \
    git \
    gcc \
    make \
    build-essential \
    wget \
    curl \
    llvm \
    xz-utils \
    tk-dev \
    zlib1g-dev \
    libncurses5-dev \
    libbz2-dev \
    libreadline-dev \
    libsqlite3-dev \
    libssl-dev \
    libxml2-dev \
    libxmlsec1-dev \
    liblzma-dev \
    libpq-dev \
    libffi-dev
WORKDIR /usr/local/apache2
docker-compose up -d apache
Entrez dans le conteneur Apache et créez un auto-certificat Voir l'article ci-dessous pour plus de détails [Apache] Créer un auto-certificat
-Ajouter l'auto-certificat créé aux volumes ・ Ajout de "443" aux ports
version: '3'
services:
  apache:
    build: apache
    container_name: apache
    ports:
      - 80:80
      - 443:443 <==ajouter à
    volumes:
      - ./apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
      - ./apache/conf/server.crt:/usr/local/apache2/conf/server.crt <==ajouter à
      - ./apache/conf/server.key:/usr/local/apache2/conf/server.key <==ajouter à
./apache/conf/httpd.conf
・ ・ ・
LoadModule ssl_module modules/mod_ssl.so <==ajouter à
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so <==ajouter à
・ ・ ・
↓↓↓↓↓↓↓↓↓↓ Ajouté ↓↓↓↓↓↓↓↓↓↓
Include conf/extra/httpd-ssl.conf 
<IfModule ssl_module>
  SSLRandomSeed startup builtin
  SSLRandomSeed connect builtin
</IfModule>
↑↑↑↑↑↑↑↑↑↑↑ Ajouté ↑↑↑↑↑↑↑↑↑↑↑
docker-compose up -d apache
OK si la connexion HTTPS est possible https://localhost