-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ability to run the dev environment as a docker stack. * Updating Readme to add dev instructions.
- Loading branch information
Showing
3 changed files
with
57 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,31 @@ You can checkout the [Site Search Plugin discuss forum](https://wordpress.org/su | |
|
||
You can contact our support by sending an email to [email protected]. | ||
|
||
### How to start the development environment | ||
|
||
#### Create the Docker stack | ||
|
||
You can create a docker stack using: | ||
|
||
```bash | ||
docker stack deploy -c stack.yml wordpress-dev | ||
``` | ||
|
||
Alternatively, you can use docker-compose instead of stack: | ||
|
||
```bash | ||
docker-compose -f stack.yml up | ||
``` | ||
|
||
Your wordpress dev instance will boot up and be available at http://localhost:8080. | ||
|
||
To enter the wordpress container, you can use the followin command: | ||
|
||
```bash | ||
docker exec -it $(docker ps -a -f label=com.docker.stack.namespace=wordpress-dev -f expose=80/tcp --format "{{.ID}}") /bin/bash | ||
``` | ||
|
||
|
||
## Contribute 🚀 | ||
|
||
We welcome contributors to the project. Before you begin, a couple notes... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: '3.1' | ||
|
||
services: | ||
|
||
wordpress: | ||
image: wordpress | ||
restart: always | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: db | ||
WORDPRESS_DB_USER: wpuser | ||
WORDPRESS_DB_PASSWORD: wppass | ||
WORDPRESS_DB_NAME: wpdb | ||
volumes: | ||
- wordpress:/var/www/html | ||
- '.:/var/www/html/wp-content/plugins/swiftype-search' | ||
|
||
db: | ||
image: mysql:5.7 | ||
restart: always | ||
environment: | ||
MYSQL_DATABASE: wpdb | ||
MYSQL_USER: wpuser | ||
MYSQL_PASSWORD: wppass | ||
MYSQL_RANDOM_ROOT_PASSWORD: '1' | ||
volumes: | ||
- db:/var/lib/mysql | ||
|
||
volumes: | ||
wordpress: | ||
db: |