47 lines
843 B
Markdown
47 lines
843 B
Markdown
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/"
|
|
```
|