docker-compose.yml and Dockerfiles for local OpenCart Development
Posted: Thu Oct 21, 2021 2:18 am
https://github.com/dabbmedia/docker-compose-opencart
I set up this docker-compose file to create a stack for local OpenCart development, since Docker is lighter weight than Vagrant and/or VirtualBox instances.
The current version uses Nginx. Most of the code for Apache is commented out, but should work with minor adjustments.
Why?
-work on Twig template or code files without uploading after every change
-build the site locally before uploading/publishing/going-live
-test an extension on a clean install of OpenCart
-several other reasons that currently escape me
I hope it's useful to someone else.
I set up this docker-compose file to create a stack for local OpenCart development, since Docker is lighter weight than Vagrant and/or VirtualBox instances.
The current version uses Nginx. Most of the code for Apache is commented out, but should work with minor adjustments.
Why?
-work on Twig template or code files without uploading after every change
-build the site locally before uploading/publishing/going-live
-test an extension on a clean install of OpenCart
-several other reasons that currently escape me
I hope it's useful to someone else.