openbridge / wordpress

Docker based Wordpress deployment using a collection of optimized containers w/ Nginx, PHP-FPM, MariaDB and Redis.
MIT License
73 stars 16 forks source link

Question: Local Development & Deployment #15

Open lucasjahn opened 4 years ago

lucasjahn commented 4 years ago

Hey there,

thanks for this high-speed setup und all the support you gave on here. I was wondering how I would be able to do active development on the theme of this WordPress setup or write custom plugins and deploy it to the setup. As I saw at the moment it is using a volume (local driver), so I assume I would need to bind this volume to a directory on the server and maybe could then connect a git (bare) repo to update its code and have it inside the dockerized WordPress setup, or how do you do it at the moment? Any tips, hints, suggestions?

Appreciate your work though!

tspicer commented 4 years ago

Personally, I try to keep each environment well abstracted and ephemeral.

in regards to local development, it depends on what you are trying to accomplish in your workflow. You can install a generic Wordpress instance locally, do your work. You can export from production for use locally as well.

lucasjahn commented 4 years ago

Ah no okay. What I meant was, how should I deploy my code to the server. I thought about changing the wrdpress.yml compose file to copy a directory like /var/html/wordpres to the container instead of using the volume in the docker files. But not sure if this would be the best way. Locally I have it running. I was just wondering about custom themes and plugin development how the "best" or "best practice" way would be to get my code to the running Docker on the server.

alexszilagyi commented 3 years ago

Is there a documentation how to use this docker image locally? For local development. More like a way to create self-signed certificates for local environment and for production use to have the certificates generated by LetsEncrypt.

tspicer commented 3 years ago

You may want to see this issue: https://github.com/openbridge/wordpress/issues/19