{"id":21665357,"url":"https://github.com/dlueth/qoopido.docker.apache2","last_synced_at":"2025-03-20T06:26:00.494Z","repository":{"id":33039344,"uuid":"36675141","full_name":"dlueth/qoopido.docker.apache2","owner":"dlueth","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-22T11:47:11.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T08:08:22.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ApacheConf","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/dlueth.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}},"created_at":"2015-06-01T16:58:31.000Z","updated_at":"2016-12-22T11:47:13.000Z","dependencies_parsed_at":"2022-08-29T18:00:51.940Z","dependency_job_id":null,"html_url":"https://github.com/dlueth/qoopido.docker.apache2","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlueth%2Fqoopido.docker.apache2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlueth%2Fqoopido.docker.apache2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlueth%2Fqoopido.docker.apache2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlueth%2Fqoopido.docker.apache2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlueth","download_url":"https://codeload.github.com/dlueth/qoopido.docker.apache2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244562481,"owners_count":20472661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-25T10:50:07.170Z","updated_at":"2025-03-20T06:26:00.471Z","avatar_url":"https://github.com/dlueth.png","language":"ApacheConf","funding_links":[],"categories":[],"sub_categories":[],"readme":"# recommended directory structure #\nLike with my other containers I encourage you to follow a unified directory structure approach to keep things simple \u0026 maintainable, e.g.:\n\n```\nproject root\n  - docker-compose.yaml\n  - htdocs\n  - config\n    - apache2\n      - initialize.sh (if needed)\n      - sites-enabled\n        - ...\n  - data\n  \t- apache2\n  \t  - certificates\n  \t  - logs\n```\n\n# Example docker-compose.yaml #\n```\nweb:\n  image: qoopido/apache2:latest\n  hostname: [hostname]\n  ports:\n   - \"80:80\"\n   - \"8080:8080\"\n   - \"443:443\"\n  volumes:\n   - ./htdocs:/app/htdocs:z\n   - ./config/apache2:/app/config:z\n   - ./data/apache2:/app/data:z\n```\n\n# Or start container manually #\n```\ndocker run -d -P -t -i -p 80:80 -p 443:443 \\\n\t-h [hostname]\n\t-v [local path to htdocs]:/app/htdocs:z \\\n\t-v [local path to config]:/app/config:z \\\n\t-v [local path to data]:/app/data:z \\\n\t--name web qoopido/apache2:latest\n```\n\n# Configuration #\nThe container comes with a default configuration for Apache2 under ```/etc/apache2/apache2.conf```. The container comes with a default site-configuration for ```/app/htdocs``` for SSL and non-SSL.\n\nAny files mounted under ```/app/config``` will be symlinked into the container's filesystem beginning at ```/etc/apache2```. This may be used to overwrite the container's default configuration with a custom, project specific configuration to (e.g.) include php fpm fastCGI proxy (which requires linking a php fpm container). The current hostname is provided as an environment variable for Apache2 so that ```${HOSTNAME}``` may be used in any Apache configuration.\n\nIf you need a custom shell script to be run on start or stop (e.g. to set symlinks) you can do so by creating the file ```/app/config/up.sh``` or ```/app/config/down.sh```.\n\nSSL certificates will be auto-generated per hostname if no key/crt file can be found in ```/app/data/certificates/[hostname].[key|crt]```.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlueth%2Fqoopido.docker.apache2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlueth%2Fqoopido.docker.apache2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlueth%2Fqoopido.docker.apache2/lists"}