Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitpoke/stack-example-bedrock
Example project for running a Bedrock base WordPress site on Bitpoke Stack
https://github.com/bitpoke/stack-example-bedrock
bedrock kubernetes wordpress
Last synced: 3 days ago
JSON representation
Example project for running a Bedrock base WordPress site on Bitpoke Stack
- Host: GitHub
- URL: https://github.com/bitpoke/stack-example-bedrock
- Owner: bitpoke
- License: mit
- Created: 2019-08-13T19:30:47.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T08:44:13.000Z (over 1 year ago)
- Last Synced: 2024-05-01T11:01:56.799Z (7 months ago)
- Topics: bedrock, kubernetes, wordpress
- Language: PHP
- Homepage: https://www.bitpoke.io/docs/stack/
- Size: 119 KB
- Stars: 20
- Watchers: 6
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
stack-example-bedrock
===Example project for running a [Bedrock](https://roots.io/bedrock/) based
WordPress site on [Bitpoke Stack](https://www.bitpoke.io/stack).## Quickstart
In order to create a similar project you need run the following commands.
```console
$ composer create-project roots/bedrock my-site
$ cd my-site
$ composer require bitpoke/stack-mu-plugin
$ ln -sf mu-plugins/stack-mu-plugin/src/object-cache.php web/app/object-cache.php
```## Building docker images
Bitpoke Stack provides a base image for building and developing WordPress
sites using Bedrock. The `Dockerfile` is as simple as:```Dockerfile
FROM docker.io/bitpoke/wordpress-runtime:bedrock-build as builder
FROM docker.io/bitpoke/wordpress-runtime:bedrock
COPY --from=builder --chown=www-data:www-data /app /app
```## Development
Local development can be done as you normally do, either running php locally,
or using docker or vagrant. Remember that Bedrock is configures trough
environment, and for setting up you should edit `.env` file.### wp-cli local server
Bedrock comes configured for running WordPress trough wp-cli. To start the
server you just need to run:```console
$ wp server
```And then you can visit [http://localhost:8080](http://localhost:8080)
### docker and docker-compose
The [docker-compose.yaml](docker-compose.yaml) in this repo provides a good
starting point for doing local development with docker. To boot up WordPress and
MySQL server run:```console
$ docker-compose up -d
```To install a plugin you can just:
```console
$ docker-compose run wordpress composer require wpackagist-plugin/debug-bar
```If you are using docker compose, remember that the image built from the above
`Dockerfile` already includes nginx and it's accessible on port 8080. For
customizing the environment also check
[https://github.com/bitpoke/stack-runtimes/blob/master/php/README.md](https://github.com/bitpoke/stack-runtimes/blob/master/php/README.md).