Go to file
2022-02-26 19:59:02 +00:00
config Update: SSH/WPCLI/Worpress/... 2022-02-26 19:43:43 +00:00
docker-compose.yml Update: SSH/WPCLI/Worpress/... 2022-02-26 19:43:43 +00:00
Dockerfile Update: SSH/WPCLI/Worpress/... 2022-02-26 19:43:43 +00:00
entrypoint.sh Update: SSH/WPCLI/Worpress/... 2022-02-26 19:43:43 +00:00
README.md Update README 2022-02-26 19:59:02 +00:00

Simple custom template for a clean Wordpress installation.

Config

Create data directories:

 $ mkdir db data
 $ chown 1000:1000 db
 $ chown 1000:1000 data

Database credentials may edit on ENVIRONMENT on docker-compose.yml or use .env file:

 $ cp .env.sample .env
 $ vim .env

Add SSH submodule

 $ git submodule add https://git.audio-lab.org/lrullo/sshd.git sshd

Build and Pull images

 $ docker-compose pull
 $ docker-compose build

Run

 $ docker-compose up -d
 $ docker-compose logs -f

Auto update Wordpress

User crontab on your hoster server.

Use this script as template:

#!/bin/bash

echo "Update Wordrpress"
docker-compose exec wordpress wp theme update --all --path="/app/wordpress/"
docker-compose exec wordpress wp plugin update --all --path="/app/wordpress/"
docker-compose exec wordpress wp core update --path="/app/wordpress/"