{"id":22558024,"url":"https://github.com/jd-apprentice/php-crud-docker","last_synced_at":"2025-10-03T13:40:35.274Z","repository":{"id":198935350,"uuid":"701846490","full_name":"jd-apprentice/php-crud-docker","owner":"jd-apprentice","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-07T19:17:29.000Z","size":196,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T12:15:02.408Z","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/jd-apprentice.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":"2023-10-07T18:22:43.000Z","updated_at":"2023-10-07T18:28:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"536ada88-7fa5-4639-921d-e13a58933760","html_url":"https://github.com/jd-apprentice/php-crud-docker","commit_stats":null,"previous_names":["jd-apprentice/php-crud-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fphp-crud-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fphp-crud-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fphp-crud-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jd-apprentice%2Fphp-crud-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jd-apprentice","download_url":"https://codeload.github.com/jd-apprentice/php-crud-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246020255,"owners_count":20710720,"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-12-07T20:10:44.018Z","updated_at":"2025-10-03T13:40:30.222Z","avatar_url":"https://github.com/jd-apprentice.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Compose sample application\n\n### Use with Docker Development Environments\n\nYou can open this sample in the Dev Environments feature of Docker Desktop version 4.12 or later.\n\n[Open in Docker Dev Environments \u003cimg src=\"../open_in_new.svg\" alt=\"Open in Docker Dev Environments\" align=\"top\"/\u003e](https://open.docker.com/dashboard/dev-envs?url=https://github.com/docker/awesome-compose/tree/master/apache-php)\n\n### PHP application with Apache2\n\nProject structure:\n```\n.\n├── compose.yaml\n├── app\n    ├── Dockerfile\n    └── index.php\n\n```\n\n[_compose.yaml_](compose.yaml)\n```\nservices:\n  web:\n    build: app\n    ports: \n      - '80:80'\n    volumes:\n      - ./app:/var/www/html/\n```\n\n## Deploy with docker compose\n\n```\n$ docker compose up -d\nCreating network \"php-docker_web\" with the default driver\nBuilding web\nStep 1/6 : FROM php:7.2-apache\n...\n...\nCreating php-docker_web_1 ... done\n\n```\n\n## Expected result\n\nListing containers must show one container running and the port mapping as below:\n```\n$ docker ps\nCONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS                  NAMES\n2bc8271fee81        php-docker_web               \"docker-php-entrypoi…\"   About a minute ago  Up About a minute   0.0.0.0:80-\u003e80/tc    php-docker_web_1\n```\n\nAfter the application starts, navigate to `http://localhost:80` in your web browser or run:\n```\n$ curl localhost:80\nHello World!\n```\n\nStop and remove the containers\n```\n$ docker compose down\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fphp-crud-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjd-apprentice%2Fphp-crud-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjd-apprentice%2Fphp-crud-docker/lists"}