{"id":17216869,"url":"https://github.com/xethron/docker-php56","last_synced_at":"2025-03-25T13:44:21.762Z","repository":{"id":145537864,"uuid":"72151947","full_name":"Xethron/docker-php56","owner":"Xethron","description":"Cal Evans made me do it","archived":false,"fork":false,"pushed_at":"2016-10-27T22:10:37.000Z","size":14489,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T12:46:47.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Xethron.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":"2016-10-27T22:04:58.000Z","updated_at":"2016-11-07T07:16:14.000Z","dependencies_parsed_at":"2023-07-16T12:01:32.677Z","dependency_job_id":null,"html_url":"https://github.com/Xethron/docker-php56","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xethron%2Fdocker-php56","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xethron%2Fdocker-php56/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xethron%2Fdocker-php56/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xethron%2Fdocker-php56/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xethron","download_url":"https://codeload.github.com/Xethron/docker-php56/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245474699,"owners_count":20621452,"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-10-15T03:42:33.620Z","updated_at":"2025-03-25T13:44:21.723Z","avatar_url":"https://github.com/Xethron.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (DEV ONLY) PHP docker image\n\nThis is a little docker image I use for development. It has a few features to make your life easier. Not sure about security, but wouldn't trust it in Production.\n\n## Building the image\n`docker build -ti xethron/php56 .` (note the period at the end)\n\n## Running the image\n```bash\n#!/bin/bash\ndocker run --name phpdev --rm \\\n-v /home/xethron/projects:/var/www \\\n-v /home/xethron/php56/data:/data/ \\\n-v /home/xethron/php56/config:/config/ \\\n-p 80:80 \\\n-p 242:22 \\\n-i -t xethron/php56\n```\nPersonally, my life is a mess, so I link in every project individually:\n```\n-v /some/path/to/project:/var/www/project1 \\\n-v /another/path/whoo:/var/www/better_project \\\n-v /some/structured/path/my-first-project:/var/www/my_project \\\n```\n\n## Setting up hosts files\nI search for any *.site file in /var/www/*/*.site, so simply add a .site file in the root of every project, and it will automatically be enabled. It will also add all the domain names specified to the dockers /etc/hosts file incase one application calls another, or perhaps even itself... Every project's .site file name must be unique!\n\nHere is one I created for my Symposiumapp dev called symposium.site\n```apache\n\u003cVirtualHost *:80\u003e\n    DocumentRoot /var/www/symposium/public\n    ServerName symposiumapp.local\n    ServerAlias www.symposiumapp.local\n\n    TransferLog /var/log/apache2/symposium_access.log\n    ErrorLog /var/log/apache2/symposium_error.log\n\n    \u003cDirectory /var/www/symposium/public\u003e\n        RewriteEngine On\n\n        # Redirect Trailing Slashes...\n        RewriteRule ^(.*)/$ /$1 [L,R=301]\n\n        RewriteCond %{REQUEST_FILENAME} !-d\n        RewriteCond %{REQUEST_FILENAME} !-f\n        RewriteRule ^ index.php [L]\n    \u003c/Directory\u003e\n\u003c/VirtualHost\u003e\n```\n\nYou'll have to point symposiumapp.local to localhost in the host machine's /etc/hosts file, but inside the docker, it is already done...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxethron%2Fdocker-php56","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxethron%2Fdocker-php56","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxethron%2Fdocker-php56/lists"}