Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirokisan/docker-wordpress
this is dev environment for wordpress with docker
https://github.com/hirokisan/docker-wordpress
Last synced: 9 days ago
JSON representation
this is dev environment for wordpress with docker
- Host: GitHub
- URL: https://github.com/hirokisan/docker-wordpress
- Owner: hirokisan
- Created: 2017-11-22T15:21:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-27T13:35:26.000Z (about 7 years ago)
- Last Synced: 2024-05-05T15:20:29.559Z (8 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
WORDPRESS WITH DOCKER FOR DEV
====## PREPARE
### 0. .ENV
* Rename .env-example to .env### 1. WORDPRESS
* 1-1. Place your wordpress git repository into ./
* 1-2. Modify WORDPRESS_GIT_REPO on .env### 2. DATA
* 2-1. Dump(export) and prepare .sql file
* 2-2. Rename the .sql file to install_wordpress.sql
* 2-3. Place install_wordpress.sql into ./.data/### 3. PATCH SQL
* 3-1. Rename sample-patch.sql to patch.sql
* 3-2. Replace new_url to yours
* e,g, http://localhost:8000
* 3-3. Replace old_url to yours
* e,g, https://github.com
* 3-4. Place the patch.sql into ./.data/## RUN
```
docker-compose up -d --build
```## START&STOP
```
docker-compose start
docker-compose stop
```## DELETE
* After delete, also delete ./.data/db/
* After delete, also delete ./.html/```
docker-compose down
```## STATUS
```
docker ps -a
```## LOG
```
docker-compose logs -f
```## If have trouble access localhost
* delete cache from browser## SEE
* [wordpress](http://localhost:8000/)
* [phpmyadmin](http://localhost:9010/)
* [mailhog](http://localhost:8025/)