{"id":19316154,"url":"https://github.com/febelery/docker","last_synced_at":"2025-04-22T16:33:13.990Z","repository":{"id":187482273,"uuid":"82780357","full_name":"febelery/docker","owner":"febelery","description":"docker environment for PHP developers","archived":false,"fork":false,"pushed_at":"2019-03-08T14:04:15.000Z","size":506,"stargazers_count":12,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T01:51:15.087Z","etag":null,"topics":["composer","docker","docker-environment","mysql","nginx","openresty","php","redis","slate"],"latest_commit_sha":null,"homepage":"","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/febelery.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}},"created_at":"2017-02-22T08:34:38.000Z","updated_at":"2019-08-01T08:47:56.000Z","dependencies_parsed_at":"2023-08-10T19:08:00.812Z","dependency_job_id":null,"html_url":"https://github.com/febelery/docker","commit_stats":null,"previous_names":["febelery/docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febelery%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febelery%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febelery%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/febelery%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/febelery","download_url":"https://codeload.github.com/febelery/docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250277443,"owners_count":21404048,"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":["composer","docker","docker-environment","mysql","nginx","openresty","php","redis","slate"],"created_at":"2024-11-10T01:09:59.739Z","updated_at":"2025-04-22T16:33:13.701Z","avatar_url":"https://github.com/febelery.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker\n\n## What is this?\nThis is the docker environment for PHP developers\n- php\n- nginx\n- mysql\n- redis\n- composer\n- openresty\n- slate\n- mongo\n\n\n## HOW TO USE\n- Download `docker` or `docker for windows`\n- `Shared Drivers`\n- Config `Daemon` `Registry mirrors`  *eg:daocloud*\n- Enter this directory\n\n\n## SKILL\n- enter container `DockerExec php-fpm`\n~~~\nFunction DockerExec($name){\n    docker exec -it  $(docker ps | grep $name| awk '{print $1}')  /bin/bash\n}\n~~~\n- composer\n~~~bash\ncd composer/ \ndocker build -t composer-china .\n~~~\n~~~\nFunction composer {\n    docker run --rm --interactive --tty  --volume ${PWD}:/app composer-china  composer $args\n}\n~~~\n- git bash inside phpstorm terminal\n    \u003e File -\u003e Settings -\u003e Tools -\u003e Terminal\n    \n    Put the following line in the Shell Path field (adjust as necessary for your platform):\n    \u003e \"C:\\Program Files (x86)\\Git\\bin\\sh.exe\" -login -i\n    \n    If you are using the 64-bit version of Git, the path is different:\n    \u003e \"C:\\Program Files\\Git\\bin\\sh.exe\" -login -i\n\n## ALIAS\n```bash\nalias winpwd=\"pwd | sed 's/^\\/d/D:/' | sed 's/^\\/c/C:/'\"\nalias composer=\"docker run --rm --interactive --tty  --volume `winpwd`:/app composer-china composer --ignore-platform-reqs --no-scripts $args\"\nalias php_docker=\"docker exec -ti `docker ps | grep php-fpm | awk '{print $1}'` bash\"\nalias python=\"docker run -it --rm --volume $(winpwd):/usr/src/app $(docker images | grep docker_python | awk '{print $3}') ipython $args\"\nalias cnpm=\"npm --registry=https://registry.npm.taobao.org --cache=$HOME/.npm/.cache/cnpm --disturl=https://npm.taobao.org/dist --userconfig=$HOME/.cnpmrc\"\nalias wrk='docker run --rm williamyeh/wrk $args'\nalias openresty=\"docker exec -ti `docker ps | grep openresty | awk '{print $1}'` openresty $args\"\n```\n\n## WRK\n- https://github.com/wg/wrk\n\n- Installation\n```\ndocker pull williamyeh/wrk\n```\n\n- Show usage\n```docker\ndocker run --rm williamyeh/wrk\n```\n\n- Script example\n```docker\ndocker run --rm  -v `pwd`:/data  \\\n      williamyeh/wrk  \\\n      -s script.lua  http://www.google.com/\n```\n\n## Slate\n\n- download [github](https://github.com/lord/slate)\n- copy directory {slate_github}/slate/source to ./slate/source\n    - or set `SLATE_SOURCE_PATH`  in .env file\n- check ./slate/source has index.html.md file and at least six directory\n- run `docker-compose up -d slate`\n- open http://localhost:4567 in brower\n \nenjoy it\n\n## Author\n\u003e Copy By [laradocker](https://github.com/laradock/laradock)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebelery%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffebelery%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffebelery%2Fdocker/lists"}