studiocreativateam / docker-wordpress
Docker Wordpress
Installs: 104
Dependents: 0
Suggesters: 0
Security: 0
Type:project
pkg:composer/studiocreativateam/docker-wordpress
README
Usage
- Copy env file: 
cp .env.example .env - Copy parameters file: 
cp ./wordpress/.htaccess.example ./wordpress/.htaccess - Copy defines file: 
cp ./wordpress/wp-config.example.php ./wordpress/wp-config.php - Copy parameters file: 
cp ./docker/php.ini.example ./docker/php.ini - Run command 
make upfor linux/mac-os ormake up-winfor windows and wait up to 2 mins after first run. - Find 
themes/main-themethroughout your project and replace it with your theme name - Install npm 
make bash=>cd wp-content/themes/main-theme=>npm install - Compile npm 
make bash=>cd wp-content/themes/main-theme=>npm run build - Go to website http://localhost <- port from .env file.
 - Go to phpmyadmin http://localhost:8080 <- port from .env file.
 
Usefully commands
- Docker start: 
make upormake up-win - Docker stop: 
make downormake down-win - Go do bash: 
make bashormake bash-win - Make database backup: 
make db-dump 
Import DB
docker exec -i wp_project_mysql mysql -uwordpress -psecret wordpress < dumps/dump.sql