https://github.com/joostvdg/apache2-openidc-docker
Naieve docker container configuration for Apache2 with OpenIDC integration.
https://github.com/joostvdg/apache2-openidc-docker
apache2 docker httpd keycloak mkdocs openid-connect
Last synced: about 2 months ago
JSON representation
Naieve docker container configuration for Apache2 with OpenIDC integration.
- Host: GitHub
- URL: https://github.com/joostvdg/apache2-openidc-docker
- Owner: joostvdg
- License: mit
- Created: 2018-02-17T15:47:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T15:48:49.000Z (about 8 years ago)
- Last Synced: 2025-12-26T11:44:36.302Z (6 months ago)
- Topics: apache2, docker, httpd, keycloak, mkdocs, openid-connect
- Language: Shell
- Size: 8.79 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apache2-openidc-docker
[]()
[]()
[]()
[](https://microbadger.com/images/caladreas/apache2-openidc-docker "Get your own image badge on microbadger.com")
Naieve docker container configuration for Apache2 with OpenIDC integration.
This image is based on the work of others: [Reposoft](https://github.com/Reposoft/openidc-keycloak-test) ([hzandbelt@pingidentity.com](https://github.com/Reposoft/openidc-keycloak-test/tree/master/openidc-jessie), [solsson](https://github.com/solsson)).
Their work has been adapted to suit my personal need for being able to host [MKDocs](http://www.mkdocs.org/) sites in a docker container that can use [Keycloak](http://www.keycloak.org/) as single sign-on solution.
Many thanks to [Zmartzone](https://github.com/zmartzone/mod_auth_openidc) for their mod_auth_openidc module for Apache2.
## Other resources
* https://github.com/zmartzone/mod_auth_openidc/wiki/Keycloak
* https://github.com/Reposoft/openidc-keycloak-test/tree/master/openidc-jessie
* https://hub.docker.com/r/solsson/httpd-openidc/~/dockerfile/
* https://github.com/zmartzone/mod_auth_openidc/wiki#11-where-can-i-get-binary-packages
* https://github.com/krallin/tini
## 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.
```dockerfile
######################################################
################## 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/
##################
######################################################
```