This container includes latest WordPress, MySQL 5.7 and updated settings to allow up to 1GB uploads.
Just deploy as needed.
docker compose -f local.yml build
docker compose -f local.yml updocker compose -f arm.yml build
docker compose -f arm.yml upFor local development you can execute the following commands:
- From your repository root folder, clone your custom theme repository under the wp-theme folder. The folder name is important since it will be used to sync the installed theme with the development code.
git clone [email protected]:account/wp-theme.git wp-theme- This will create a wp-theme folder including your theme's files. Which will later be mounted to the WordPress installation. The next step is to run the
upcommand again with thebuildargument.
docker compose -f XXX.yml up --build- Your theme will be available under the WordPress admin themes section at:
http://localhost:3100- Copiar theme a clients-theme
- Copiar plugins a clients-plugins
- Copiar plugins del nuevo theme a wp-plugins
- Renombrar URL de producción a URL's locales
- Cargar dump en el contenedor de MySQL
- docker compose -f arm.yml run db mysql -u root -psomewordpress -h db wordpress < clients-db/wp-theme-almex.sql
Rename production.yml.tpl to production.yml and adjust settings accordingly.
docker compose -f production.yml build
docker compose -f production.yml up- Remove image
docker compose -f XXX.yml stop
docker compose -f XXX.yml down -vRemove wordpress image from local docker
- Clean up local containers
docker compose -f XXX.yml stop
docker compose -f XXX.yml down -v
# caution, this is a global clean up
docker system prune
docker volume prune
docker network prune
docker compose -f local.yml --verbose up --build --remove-orphans- Access containers
docker compose -f XXX.yml run wordpress bash