{"id":21009067,"url":"https://github.com/avin/php-hosting-docker-compose","last_synced_at":"2025-06-29T00:33:09.667Z","repository":{"id":86507133,"uuid":"90675031","full_name":"avin/php-hosting-docker-compose","owner":"avin","description":"Nginx + PHP + Mysql docker compose","archived":false,"fork":false,"pushed_at":"2017-05-13T18:54:20.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T20:02:35.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/avin.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":"2017-05-08T21:42:54.000Z","updated_at":"2017-05-08T21:53:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"7071b901-c16f-4629-825f-6ca5bbe0c53b","html_url":"https://github.com/avin/php-hosting-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avin/php-hosting-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Fphp-hosting-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Fphp-hosting-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Fphp-hosting-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Fphp-hosting-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avin","download_url":"https://codeload.github.com/avin/php-hosting-docker-compose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avin%2Fphp-hosting-docker-compose/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260272447,"owners_count":22984317,"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-19T09:15:20.603Z","updated_at":"2025-06-17T01:35:30.621Z","avatar_url":"https://github.com/avin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker php+mysql+nginx hosting container\nnginx + PHP + MySQL service\n\n## Install as systemd service\n\nInstall `docker`, `docker-compose`, `git` before\n\nClone repository\n```\nmkdir /opt -p \u0026\u0026 cd /opt\ngit clone https://github.com/avin/php-hosting-docker-compose.git hosting\n``` \nModify `docker-compose.yml` if you need.\n\nCreate `/etc/systemd/system/hosting-docker.service`:\n```\n[Unit]\nDescription=Hosting Service  \nAfter=docker.service  \nRequires=docker.service\n\n[Service]\nExecStart=/usr/local/bin/docker-compose -f /opt/hosting/docker-compose.yml up --build\nExecStop=/usr/local/bin/docker-compose -f /opt/hosting/docker-compose.yml stop -t 2\n\n[Install]\nWantedBy=multi-user.target  \n```\n\nInstall service\n```\nsystemctl enable hosting-docker.service\n```\n\n## Structure\n* `backups/db` mysql dumps location\n* `content/db` mysql db files location\n* `content/site-configs` nginx configs for websites\n* `content/site-files` websites files\n\n## DB Maintenance\n* `db_backup.sh` - make dumps of all mysql dbs\n* `db_cli.sh` - enter mysql console","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favin%2Fphp-hosting-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favin%2Fphp-hosting-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favin%2Fphp-hosting-docker-compose/lists"}