Skip to content

Commit ccb6da9

Browse files
authored
change ~/ to /opt/
1 parent 291f465 commit ccb6da9

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

borgmatic/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ MYSQL_ROOT_PASSWORD=YOUR-MYSQL-ROOT-PASSWORD # Root password for MyS
1010

1111
VOLUME_EE_SOURCE=/opt/easyengine # Source path for EasyEngine data
1212
VOLUME_DOCKER_VOLUMES=/var/lib/docker/volumes # Source path for Docker volumes
13-
VOLUME_BORGMATIC_CONFIG_SOURCE=../borgmatic # Source path for Borgmatic configuration files
14-
VOLUME_FAIL2BAN_CONFIG_SOURCE=../fail2ban # Source path for Fail2Ban configuration files
13+
VOLUME_BORGMATIC_CONFIG_SOURCE=/opt/borgmatic # Source path for Borgmatic configuration files
14+
VOLUME_FAIL2BAN_CONFIG_SOURCE=/opt/fail2ban # Source path for Fail2Ban configuration files
1515
VOLUME_CRONTAB_SOURCE=/var/spool/cron # Source path for crontab files
1616

1717
VOLUME_RESTORE_DESTINATION=./restore # Destination path for restoring backups

borgmatic/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
1. Download docker-compose.yml, .env and borgmatic config.yaml
33

44
```bash
5-
mkdir -p ./borgmatic/data/{borgmatic.d,repository,.config,.ssh,.cache}
5+
sudo mkdir -p /opt/borgmatic/data/{borgmatic.d,repository,.config,.ssh,.cache}
66

7-
curl -o ./borgmatic/docker-compose.yml https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/docker-compose.yml
8-
curl -o ./borgmatic/data/borgmatic.d/config.yaml https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/data/borgmatic.d/config.yaml
9-
curl -o ./borgmatic/.env https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/.env
7+
sudo curl -o /opt/borgmatic/docker-compose.yml https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/docker-compose.yml
8+
sudo curl -o /opt/borgmatic/data/borgmatic.d/config.yaml https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/data/borgmatic.d/config.yaml
9+
sudo curl -o /opt/borgmatic/.env https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/borgmatic/.env
1010
```
1111

1212
2. Change your info in .env
1313
```bash
14-
vi ./borgmatic/.env
14+
sudo vi /opt/borgmatic/.env
1515
```
1616

1717
3. Run borgmatic container (one time)
1818
```bash
19-
cd ./borgmatic && \
20-
sudo docker compose run --rm --entrypoint bash borgmatic
19+
sudo docker compose -f /opt/borgmatic/docker-compose.yml run --rm --entrypoint bash borgmatic
2120
```

fail2ban/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# Fail2ban for easyengine-docker quick start
22
## 1. Download docker-compose.yml, fail2ban.env, jail and filter:
33
```bash
4-
mkdir -p ./fail2ban/data/{jail.d,filter.d,action.d} && cd fail2ban
4+
sudo mkdir -p /opt/fail2ban/data/{jail.d,filter.d,action.d}
55

6-
curl -o ./docker-compose.yml -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/docker-compose.yml
7-
curl -o ./fail2ban.env -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/fail2ban.env
6+
sudo curl -o /opt/fail2ban/docker-compose.yml -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/docker-compose.yml
7+
sudo curl -o /opt/fail2ban/fail2ban.env -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/fail2ban.env
88

9-
curl -o ./data/filter.d/sshd.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/sshd.local
10-
curl -o ./data/filter.d/nginx-req-limit.conf -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/nginx-req-limit.conf
11-
curl -o ./data/filter.d/wp-login-fail.conf -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/wp-login-fail.conf
9+
sudo curl -o /opt/fail2ban/data/filter.d/sshd.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/sshd.local
10+
sudo curl -o /opt/fail2ban/data/filter.d/nginx-req-limit.conf -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/nginx-req-limit.conf
11+
sudo curl -o /opt/fail2ban/data/filter.d/wp-login-fail.conf -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/filter.d/wp-login-fail.conf
1212

13-
curl -o ./data/jail.d/jail.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/jail.d/jail.local
13+
sudo curl -o /opt/fail2ban/data/jail.d/jail.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/jail.d/jail.local
1414
```
1515
## 2. Add your sites logs
1616
```bash
17-
vi ./docker-compose.yml
17+
vi /opt/fail2ban/docker-compose.yml
1818
```
1919
## 3. Run
2020
```bash
@@ -24,7 +24,7 @@ sudo docker compose up -d
2424
## 4 More
2525
Use Cloudflare WAF
2626
```bash
27-
curl -o ./data/jail.d/jail-cloudflare.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/jail.d/jail-cloudflare.local
27+
sudo curl -o /opt/fail2ban/data/jail.d/jail-cloudflare.local -L https://raw.githubusercontent.com/dinhngocdung/easyengine-docker-stack/refs/heads/main/fail2ban/jail.d/jail-cloudflare.local
2828

2929
# And change your cfzone and cftoken
3030
```

0 commit comments

Comments
 (0)