config | ||
docker-compose.yml | ||
Dockerfile | ||
entrypoint.sh | ||
README.md |
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/"