caladreas/apache2-openidc-docker

By caladreas

Updated almost 8 years ago

Naieve docker container configuration for Apache2 with OpenIDC integration.

Image
1

10K+

caladreas/apache2-openidc-docker repository overview

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 ([email protected], 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/
##################
######################################################

Tag summary

Content type

Image

Digest

Size

69 MB

Last updated

almost 8 years ago

Requires Docker Desktop 4.37.1 or later.