Go to file
2022-02-26 19:48:45 +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:48:45 +00:00

Simple custom template for a clean Wordpress installation.

Config

Create data directories:

$ mkdir db data

Database credentials may edit on ENVIRONMENT on docker-compose.yml or user .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

Auto update Wordpress

User crontab on your hoster server.

Use this script as template:

#!/bin/bash

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