Coder Social home page Coder Social logo

docker-wordpress's Introduction

Docker Wordpress [automation]

This repo is part of a larger script to changes in the files must be reviewed.

If you are looking of the previous version check branch basic.

Using Wordpress with SSL enabled integrated with NGINX proxy and autorenew LetsEncrypt certificates

wordpress-docker-letsencrypt

This docker-compose should be used with WebProxy (the NGINX Proxy):

https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion

Usage

After everything is settle, and you have your three containers running (proxy, generator and letsencrypt) you do the following:

  1. Clone this repository:
git clone https://github.com/evertramos/docker-wordpress.git
  1. Update the service name in your docker-compose.yml file VERY IMPORTANT

You must use any name, but make sure it is a unique service name in your environment, otherwise it will conflict with other services.

  1. Configure your .env file:

Copy .env.sample to .env and update with your data

The proxy network must match the network name you have set in the proxy settings.

  1. Start your project
docker-compose up -d

Be patient - when you first run this repo, the database might take sometime to launch and the process of getting a new certificate for your domain might take some time.


Make sure the wordpress data files has user and group set to www-data, so you could update, install, delete files from your admin panel.


WebProxy

WebProxy - docker-compose-letsencrypt-nginx-proxy-companion


Further Options

For whoever uses wp-cli here is how to implement it on this repo.

Test to see if it´s working

./wp-cli-test.sh

If you would, add the alias "wp" to your .bash_aliases:

alias wp="docker-compose run --rm wpcli"

Next time you need to run a wp-cli command just go to where you have your docker-compose file and run a wp command.


Known Issues

Azure

Running docker on Azure servers you must mount your database in your disks partitions (example: /mnt/data/) so your db container can work. This is a some kind of issue regarding Hyper-V sharing drivers... not really sure why.

docker-wordpress's People

Contributors

barbosacisco avatar evertramos avatar flothemaker avatar hadrien-toma avatar khalilgharbaoui 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.