{"id":21214410,"url":"https://github.com/oberonamsterdam/docker-apache24-fpm","last_synced_at":"2026-03-01T04:35:58.823Z","repository":{"id":83458764,"uuid":"131578934","full_name":"oberonamsterdam/docker-apache24-fpm","owner":"oberonamsterdam","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-10T20:06:31.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-05T02:39:34.022Z","etag":null,"topics":["docker","dockerfile","httpd"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oberonamsterdam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-30T09:42:56.000Z","updated_at":"2023-01-10T14:04:32.000Z","dependencies_parsed_at":"2023-04-17T06:16:20.366Z","dependency_job_id":null,"html_url":"https://github.com/oberonamsterdam/docker-apache24-fpm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oberonamsterdam/docker-apache24-fpm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberonamsterdam%2Fdocker-apache24-fpm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberonamsterdam%2Fdocker-apache24-fpm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberonamsterdam%2Fdocker-apache24-fpm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberonamsterdam%2Fdocker-apache24-fpm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oberonamsterdam","download_url":"https://codeload.github.com/oberonamsterdam/docker-apache24-fpm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oberonamsterdam%2Fdocker-apache24-fpm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile","httpd"],"created_at":"2024-11-20T21:27:46.133Z","updated_at":"2026-03-01T04:35:58.803Z","avatar_url":"https://github.com/oberonamsterdam.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Based on https://hub.docker.com/_/httpd/\nThe \"latest\"-image is based on httpd:2.4-alpine\n\nDefault Oberon apache setup using PHP-FPM, requires a PHP-FPM docker image: official ones from PHP or the custom build one in our other repository.\nNote: If you don't need PHP (like only serving plain html) then we recommend using the vanilla HTTPD container or something lightweight like nginx/lighttpd.\n\n# This image has the following modules enabled:\n* mod_alias\n* mod_rewrite\n* mod_proxy_wstunnel\n* mod_proxy_fcgi\n* mod_proxy\n\n# Additional configurations:\n* mod_expires - with 1 month on image/css/javascript assets additional minetypes for svg and fonts\n* mod_deflate - on text assets (html, css, js, svg, xml, plain) production settings on signatures\n\n# Adding your own configurations:\nAdd your own configurations by adding entries to the web-container volumes under \"/usr/local/apache2/conf/other/\":\n```\n    web:\n        volumes:\n            - myconfiguration.conf:/usr/local/apache2/conf/other/myconfiguration.conf\n```\n\nNote that HTTPS is disabled since we use an Nginx proxy ourselves so don't forget to enable that when you need it.\n\n# Example docker-compose.yml:\n\n```\nversion: '3'\nservices:\n    web:\n        image: oberonamsterdam/apache24-fpm:latest\n        restart: always\n        network_mode: \"bridge\"\n        environment:\n            - \"VIRTUAL_HOST=my.domain.ext\"\n            - \"APACHE_DOCUMENTROOT=/app/web\"\n        links:\n            - php\n        depends_on:\n            - php\n        volumes:\n            - .:/app/:delegated\n    php:\n        image: oberonamsterdam/php:7.1-fpm\n        restart: always\n        network_mode: \"bridge\"\n        volumes:\n            - .:/app/:delegated\n```\n\nSwitch PHP version by using another PHP image (exposed PHP-FPM on port 9000).\n\n# Switch PHP container hostname or portnumber\n\nYou can use the PHP_FPM_HOSTNAME and PHP_FPM_PORT environment variables to change the hostname and\nport Apache uses to connect to PHP-FPM:\n\n```\nversion: '3'\nservices:\n    web:\n        ...SNIP\n        environment:\n            - \"VIRTUAL_HOST=my.domain.ext\"\n            - \"APACHE_DOCUMENTROOT=/app/web\"\n            - \"PHP_FPM_HOSTNAME=my_php_container\"\n            - \"PHP_FPM_PORT=9001\"\n```\n\n# OPENID CONNECT\n\nThe \"openidc\"-image is based on httpd:2.4 (since the mod_auth_openidc is not available for Alpine)\n\nUsing the openidc-tagged image, use this for example to add an initial auth to your container (instead of htpasswd).\nComplete manual of openidc config can be found here: https://github.com/zmartzone/mod_auth_openidc\n\nThis an example using google and your own domain (so only people from your own company can access this container)\n```\nLoadModule auth_openidc_module /usr/lib/apache2/modules/mod_auth_openidc.so\n\nOIDCProviderMetadataURL https://accounts.google.com/.well-known/openid-configuration\nOIDCClientID \u003c\u003cGOOGLE-CLIENT-ID\u003e\u003e\nOIDCClientSecret \u003c\u003cGOOGLE-CLIENT-SECRET\u003e\u003e\n\nOIDCAuthRequestParams hd=\u003c\u003cYOUR-DOMAIN\u003e\u003e\nOIDCRedirectURI https://${VIRTUAL_HOST}/redirect\nOIDCCryptoPassphrase \u003c\u003cYOUR-RANDOM-PASSPHRASE\u003e\u003e\nOIDCRemoteUserClaim email\nOIDCScope \"openid email\"\nOIDCAuthNHeader X-Forwarded-User\n\n\u003cLocation /\u003e\n    AuthType openid-connect\n    Require claim hd:\u003c\u003cYOUR-DOMAIN\u003e\u003e\n    Require valid-user\n\u003c/Location\u003e\n```\n\nAfter this, add the config to the web-container:\n```\nversion: '3'\nservices:\n    web:\n        image: oberonamsterdam/apache24-fpm:openidc\n        volumes:\n            - .:/app/:delegated\n            - openidc.conf:/usr/local/apache/config/other/openidc.conf\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foberonamsterdam%2Fdocker-apache24-fpm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foberonamsterdam%2Fdocker-apache24-fpm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foberonamsterdam%2Fdocker-apache24-fpm/lists"}