{"id":19820616,"url":"https://github.com/bitpoke/stack-example-bedrock","last_synced_at":"2025-09-03T21:34:22.707Z","repository":{"id":56661286,"uuid":"202211341","full_name":"bitpoke/stack-example-bedrock","owner":"bitpoke","description":"Example project for running a Bedrock base WordPress site on Bitpoke Stack","archived":false,"fork":false,"pushed_at":"2023-04-06T08:44:13.000Z","size":122,"stargazers_count":25,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-06T13:12:10.434Z","etag":null,"topics":["bedrock","kubernetes","wordpress"],"latest_commit_sha":null,"homepage":"https://www.bitpoke.io/docs/stack/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitpoke.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-13T19:30:47.000Z","updated_at":"2025-02-24T18:24:29.000Z","dependencies_parsed_at":"2022-08-15T22:50:26.194Z","dependency_job_id":null,"html_url":"https://github.com/bitpoke/stack-example-bedrock","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/bitpoke%2Fstack-example-bedrock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpoke%2Fstack-example-bedrock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpoke%2Fstack-example-bedrock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitpoke%2Fstack-example-bedrock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitpoke","download_url":"https://codeload.github.com/bitpoke/stack-example-bedrock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251869437,"owners_count":21657262,"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":["bedrock","kubernetes","wordpress"],"created_at":"2024-11-12T10:24:04.329Z","updated_at":"2025-05-01T11:33:49.817Z","avatar_url":"https://github.com/bitpoke.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"stack-example-bedrock\n===\n\nExample project for running a [Bedrock](https://roots.io/bedrock/) based\nWordPress site on [Bitpoke Stack](https://www.bitpoke.io/stack).\n\n## Quickstart\n\nIn order to create a similar project you need run the following commands.\n\n```console\n$ composer create-project roots/bedrock my-site\n$ cd my-site\n$ composer require bitpoke/stack-mu-plugin\n$ ln -sf mu-plugins/stack-mu-plugin/src/object-cache.php web/app/object-cache.php\n```\n\n## Building docker images\n\nBitpoke Stack provides a base image for building and developing WordPress\nsites using Bedrock. The `Dockerfile` is as simple as:\n\n```Dockerfile\nFROM docker.io/bitpoke/wordpress-runtime:bedrock-build as builder\nFROM docker.io/bitpoke/wordpress-runtime:bedrock\nCOPY --from=builder --chown=www-data:www-data /app /app\n```\n\n## Development\n\nLocal development can be done as you normally do, either running php locally,\nor using docker or vagrant. Remember that Bedrock is configures trough\nenvironment, and for setting up you should edit `.env` file.\n\n### wp-cli local server\n\nBedrock comes configured for running WordPress trough wp-cli. To start the\nserver you just need to run:\n\n```console\n$ wp server\n```\n\nAnd then you can visit [http://localhost:8080](http://localhost:8080)\n\n### docker and docker-compose\n\nThe [docker-compose.yaml](docker-compose.yaml) in this repo provides a good\nstarting point for doing local development with docker. To boot up WordPress and\nMySQL server run:\n\n```console\n$ docker-compose up -d\n```\n\nTo install a plugin you can just:\n\n```console\n$ docker-compose run wordpress composer require wpackagist-plugin/debug-bar\n```\n\nIf you are using docker compose, remember that the image built from the above\n`Dockerfile` already includes nginx and it's accessible on port 8080. For\ncustomizing the environment also check\n[https://github.com/bitpoke/stack-runtimes/blob/master/php/README.md](https://github.com/bitpoke/stack-runtimes/blob/master/php/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpoke%2Fstack-example-bedrock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitpoke%2Fstack-example-bedrock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitpoke%2Fstack-example-bedrock/lists"}