egeya_docker/README.md

60 lines
1.9 KiB
Markdown

## Install
1. Clone this git repo
`git clone https://git.zhirov.website/alexander/egeya_docker.git .`
2. Specify needed parameters in `.env` file
3. Specify needed parameters mail server in `msmtprc` file or see the [official documentation mSMTP](https://marlam.de/msmtp/msmtp.html):
```
account main
host <your-ip-address> # 192.168.0.1
port <your-port> # 587
auth on
user <your-email-address> # example@mail.domain
from <your-from-email-address> # example@mail.domain
password <your-email-password>
logfile /var/log/msmtp_main.log
```
4. Run with `--build` flag for the first time
`docker-compose up -d --build`
![Installation screenshot](/permission-denied.png)
5. After starting the services, you need to grant read/write permissions to volumes:
`chown -R www-data:www-data ${PATH_VOLUMES}`
6. Go to `VIRTUAL_HOST` address and fill the Egeya setup form with data:
```
DB Host: mariadb
DB User: root
DB Pass: egeya
DB Database: <select "egeya" from the list>
Admin pass: <specify yours>
```
7. That's all.
![Installation screenshot](/install-screenshot.png)
## Start / Stop
```
docker-compose up -d
docker-compose stop
```
## Updates
- To update PHP version, go to .env, change version and run
`docker-compose up -d`
- To update MariaDB version, go to .env, change version and run
`docker-compose up -d`
- To update blog version, go to .env, change version and run
`docker-compose up -d`
It doesn't affect an important data as it's been stored in
- `${PATH_VOLUMES}/user` — all user-specific settings
- `${PATH_VOLUMES}/theme` — here you can paste your custom theme
- `${PATH_VOLUMES}/pictures` — uploaded images
- `${PATH_VOLUMES}/audio` — uploaded audio
- `${PATH_VOLUMES}/video` — uploaded video
- `${PATH_VOLUMES}/mariadb` — database data