diff --git a/compose.yml b/compose.yml index d7499f6..d78b580 100644 --- a/compose.yml +++ b/compose.yml @@ -4,6 +4,7 @@ services: ports: - 5000:5000 - 80:80 + - 443:443 volumes: - .:/code networks: diff --git a/docker/apache2/dockerfile b/docker/apache2/dockerfile index 3749575..4ca21c2 100644 --- a/docker/apache2/dockerfile +++ b/docker/apache2/dockerfile @@ -5,7 +5,11 @@ RUN npm i && npm run build FROM debian:stable-slim RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \ - && rm -rf /var/lib/apt/lists/* -WORKDIR /var/www/html + && rm -rf /var/lib/apt/lists/* \ + && a2enmod ssl && a2ensite default-ssl +COPY 000-default.conf /etc/apache2/sites-available/000-default.conf +COPY default-ssl.conf /etc/apache2/sites-available/default-ssl.conf +WORKDIR /app COPY --from=build /app/dist . + CMD ["apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file