generated from jrtashjian/pluginwp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DevContainer: use docker-compose instead of wp-env
- Loading branch information
1 parent
10050fe
commit 0546672
Showing
4 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
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
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,29 @@ | ||
version: '3.1' | ||
|
||
services: | ||
app: | ||
image: wordpress | ||
restart: always | ||
ports: | ||
- 8080:80 | ||
environment: | ||
WORDPRESS_DB_HOST: db | ||
WORDPRESS_DB_USER: exampleuser | ||
WORDPRESS_DB_PASSWORD: examplepass | ||
WORDPRESS_DB_NAME: exampledb | ||
volumes: | ||
- ../..:/workspaces:cached | ||
|
||
db: | ||
image: mariadb | ||
restart: unless-stopped | ||
environment: | ||
MYSQL_DATABASE: exampledb | ||
MYSQL_USER: exampleuser | ||
MYSQL_PASSWORD: examplepass | ||
MYSQL_RANDOM_ROOT_PASSWORD: '1' | ||
volumes: | ||
- db:/var/lib/mysql | ||
|
||
volumes: | ||
db: |
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,11 @@ | ||
#!/bin/sh | ||
|
||
set -eux | ||
|
||
echo "Installing wp-cli..." | ||
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | ||
sudo chmod +x wp-cli.phar | ||
sudo mv wp-cli.phar /usr/local/bin/wp | ||
|
||
# Install PHP Scoper globally | ||
composer global require humbug/php-scoper |
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