Skip to content

Carmen-Mercado/wp-infra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LHP infrastructure for WordPress website

Install

This container includes latest WordPress, MySQL 5.7 and updated settings to allow up to 1GB uploads.

Just deploy as needed.

Local setup

docker compose -f local.yml build
docker compose -f local.yml up

Local development

For local development you can execute the following commands:

  1. 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
  1. 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 the build argument.
docker compose -f local.yml up --build
  1. Your theme will be available under the WordPress admin themes section at localhost:3100/wp-admin/themes.php

Deploy to production

Rename production.yml.tpl to production.yml and adjust settings accordingly.

docker compose -f production.yml build
docker compose -f production.yml up

Troubleshooting

  1. Remove image
docker compose -f local.yml stop
docker compose -f local.yml down -v

Remove wordpress image from local docker

  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 46.1%
  • Smarty 41.3%
  • Dockerfile 12.6%