Update README

This commit is contained in:
Luca 2022-02-26 19:59:02 +00:00
parent 04eafb4b18
commit 4c48932cba

View File

@ -5,30 +5,37 @@ Simple custom template for a clean Wordpress installation.
Create data directories: Create data directories:
``` ```
$ mkdir db data $ mkdir db data
$ chown 1000:1000 db
$ chown 1000:1000 data
``` ```
Database credentials may edit on ENVIRONMENT on docker-compose.yml or user _.env_ file: Database credentials may edit on ENVIRONMENT on docker-compose.yml or use _.env_ file:
``` ```
$ cp .env.sample .env $ cp .env.sample .env
$ vim .env $ vim .env
``` ```
# Add SSH submodule # Add SSH submodule
``` ```
$ git submodule add https://git.audio-lab.org/lrullo/sshd.git sshd $ git submodule add https://git.audio-lab.org/lrullo/sshd.git sshd
``` ```
# Build and Pull images # Build and Pull images
```
$ docker-compose pull $ docker-compose pull
$ docker-compose build $ docker-compose build
```
# Run # Run
```
$ docker-compose up -d $ docker-compose up -d
$ docker-compose logs -f
```
# Auto update Wordpress # Auto update Wordpress
@ -40,7 +47,7 @@ Use this script as template:
#!/bin/bash #!/bin/bash
echo "Update Wordrpress" echo "Update Wordrpress"
docker exec -it docker-wordpress /app/wp theme update --all --path="/app/wordpress/" docker-compose exec wordpress wp theme update --all --path="/app/wordpress/"
docker exec -it docker-wordpress /app/wp plugin update --all --path="/app/wordpress/" docker-compose exec wordpress wp plugin update --all --path="/app/wordpress/"
docker exec -it docker-wordpress /app/wp core update --path="/app/wordpress/" docker-compose exec wordpress wp core update --path="/app/wordpress/"
``` ```