GithubHelp home page GithubHelp logo

docker4wp's Introduction

Docker4WP

Docker for Wordpress

Usage

  1. Clone repo in folder .docker inside project.
  2. Go inside .docker folder and copy .env.sample to .env file. Edit .env.
  3. Run docker-run.sh.

Wordpress site access on http://localhost.

All tested on Windows 10 host, Docker Desktop v3.0.4.51218, HyperV.

Description

Containers:

  • web_server - Wordpress container
  • db_server - Database container
  • mailhog_server - Mailhog for emails.
  • adminer - DB management container

Default ports

  • Web server - http://localhost:80 (in .env file - WEB_PORT)
  • DB server - http://localhost:1306 (in .env file - DB_PORT)
  • Mailhog - http://localhost:8025 (in .env file - MAILHOG_PORT)
  • Adminer - http://localhost:8081 (in .env file - DBADMIN_PORT)

Custom domain

If need set some custom domain:

  1. Set APP_URL in .env file - needed domain. For example domain.test.
  2. In hosts file of the host system add line for domain 127.0.0.1 domain.test.
  3. Reload docker
  4. Now site available in browser on http://domain.test

Scripts

  • docker-run.sh - run the containers
  • docker-stop.sh - stop containers
  • docker-db.sh - open terminal in db_server container
  • docker-web.sh - open terminal in web_server container
  • docker-export-db.sh - save DB dump to external file compose/dbdump/dump.sql
  • docker-import-db.sh - import dump compose/dbdump/dump.sql to DB

docker4wp's People

Watchers

James Cloos avatar denver.zp 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.