- You need to add the string to
hosts
file your OS:
127.0.0.1 wp-docker-boilerplate.local
- Run command
make env.create
, then fill the config data. - Run command
make d.up
- Run command
make c.install
for installing dependencies and WordPress - Visit site wp-docker-boilerplate.local
You need to put on your file to ./docker/mysql/backup
with the name import_db.sql
, then you need to run the command make mysql.import
.
You need to run the command make mysql.export
, then you will see the exported file by /docker/mysql/backup
path.
If you have a problems with access right for files, try using the next command for fixing it:
# It is using your user:usergroup
make fix-access-right-for FILE/DIR`
or
sudo chown USER:GROUP FILE
If you want change domain, you need to change server_name
in ./docker/nginxconf.d/default.conf
.
- If you use VPN, you need to disable VPN and run command:
docker network create localdev
- After It you can run your VPN.
- Add the code at end of the file:
default: external: name: localdev
- Make to
docker-compose up -d