studiocreativateam / docker-wordpress
Docker Wordpress
1.0.2
2024-01-30 13:35 UTC
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 up
for linux/mac-os ormake up-win
for windows and wait up to 2 mins after first run. - Find
themes/main-theme
throughout 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 up
ormake up-win
- Docker stop:
make down
ormake down-win
- Go do bash:
make bash
ormake bash-win
- Make database backup:
make db-dump
Import DB
docker exec -i wp_project_mysql mysql -uwordpress -psecret wordpress < dumps/dump.sql