GithubHelp home page GithubHelp logo

young-brain / wp-docker-env-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renakdup/wp-docker-env-boilerplate

0.0 0.0 0.0 18 KB

WordPress Docker Boilerplate Environment

Dockerfile 24.12% PHP 44.44% Makefile 29.66% Shell 1.79%

wp-docker-env-boilerplate's Introduction

Docker Environment Boilerplate for WordPress

Instructions

  1. You need to add the string to hosts file your OS:
    127.0.0.1 wp-docker-boilerplate.local
  2. Run command make env.create, then fill the config data.
  3. Run command make d.up
  4. Run command make c.install for installing dependencies and WordPress
  5. Visit site wp-docker-boilerplate.local

Import/Export DB

Import

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.

Export

You need to run the command make mysql.export, then you will see the exported file by /docker/mysql/backup path.


Other cases

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 have troubles with VPN

  1. If you use VPN, you need to disable VPN and run command:
    docker network create localdev
  2. After It you can run your VPN.
  3. Add the code at end of the file:
     default:
      external:
       name: localdev
    
  4. Make to
    docker-compose up -d

wp-docker-env-boilerplate's People

Contributors

renakdup avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.