Skip to content

joostvdg/apache2-openidc-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apache2-openidc-docker

GitHub release license Docker Pulls

Naieve docker container configuration for Apache2 with OpenIDC integration.

This image is based on the work of others: Reposoft (hzandbelt@pingidentity.com, solsson).

Their work has been adapted to suit my personal need for being able to host MKDocs sites in a docker container that can use Keycloak as single sign-on solution.

Many thanks to Zmartzone for their mod_auth_openidc module for Apache2.

Buy Me a Coffee at ko-fi.com

Other resources

How to use

This can be done for any website you want to host or what else you want to do with apache2.

My usecase is to host MKDocs (with MKDocs Material) websites, so thats my example. I'm sure you can extrapolate the rest from there.

######################################################
################## MULTI-STAGE BUILD
##################
## BUILD
FROM caladreas/mkdocs-docker-build-container:2.0.0 as build
WORKDIR /src
ENV LAST_UPDATE=20180209
ADD . /src
RUN ls -lath /src
RUN mkdocs build
RUN ls -lath /src/site
##################

##################
## RUN
FROM caladreas/apache2-openidc-docker:0.2.0
COPY --from=build /src/site /var/www/html/
##################
######################################################