Update README
This commit is contained in:
parent
04eafb4b18
commit
4c48932cba
15
README.md
15
README.md
@ -6,9 +6,11 @@ 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 user _.env_ file:
|
||||
Database credentials may edit on ENVIRONMENT on docker-compose.yml or use _.env_ file:
|
||||
|
||||
```
|
||||
$ cp .env.sample .env
|
||||
@ -23,12 +25,17 @@ $ 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
|
||||
|
||||
@ -40,7 +47,7 @@ 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/"
|
||||
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/"
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user