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 up
For 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 git@bitbucket.org:longevity-health-plan/lhp.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
up
command again with thebuild
argument.
docker compose -f local.yml up --build
- Your theme will be available under the WordPress admin themes section at localhost:3100/wp-admin/themes.php
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 local.yml stop
docker compose -f local.yml down -v
Remove wordpress image from local docker
- Clean up local containers
docker compose -f local.yml stop
docker compose -f local.yml down -v
docker system prune
docker volume prune
docker network prune
docker compose -f local.yml --verbose up --build --remove-orphans