config | ||
docker-compose.yml | ||
Dockerfile | ||
entrypoint.sh | ||
README.md |
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 sudo -u wordpress -i -- /app/wp theme update --all --path="/app/wordpress/"
docker exec -it docker-wordpress_1 sudo -u wordpress -i -- /app/wp plugin update --all --path="/app/wordpress/"
docker exec -it docker-wordpress sudo -u wordpress -i -- /app/wp core update --path="/app/wordpress/"