GithubHelp home page GithubHelp logo

julihermes / simple-wordpress-docker-container Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 5 KB

A simple and quickly docker container for wordpress development.

License: MIT License

Dockerfile 100.00%
docker docker-compose wordpress

simple-wordpress-docker-container's Introduction

Simple Wordpress Docker Container

A simple and quickly docker container for wordpress development.

This container has Wordpress, Mysql and Adminer.

Setup

  1. Clone the repo or download it.
  2. Run docker compose up -d.
  3. Access http://localhost:8080 in your browser and setup wodpress.
  4. Start coding your theme in theme folder.

More details

  • Only your theme folder is mapped, this covers most common wordpress projects. If you want map more folder, just added in docker-compose.yml file, like:
volumes:
    - ./theme:/var/www/html/wp-content/themes/mytheme
    - ./plugins:/var/www/html/wp-content/plugins
  • You can access Adminer in http://localhost:8888.

  • This container doesn't have restart: always config purposely, just to have more control what sites (containers) I am working in the moment. You can add in docker-compose.yml if you want.

  • If you have to run multiple wordpress sites (containers) in the same time, make sure you change the ports mapped in docker-compose.yml, use a different port for each site (dont forget Adminer's ports)

  • If you have trouble with permission in theme folder (or another folder that you are mapped) in linux or WSL, use the command: sudo chown your_user ./theme,

simple-wordpress-docker-container's People

Contributors

julihermes avatar

Watchers

James Cloos avatar  avatar

Forkers

renauddahou

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.