feat: currently in production
This commit is contained in:
44
README.md
44
README.md
@@ -4,17 +4,17 @@ Welcome to public repository of [https://cloud.limbosolutions.com](https://cloud
|
||||
|
||||
Using [NextCloud](https://nextcloud.com/)
|
||||
|
||||
## Setup
|
||||
|
||||
|
||||
## Requirements
|
||||
|
||||
- Docker
|
||||
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
||||
|
||||
- Docker Compose
|
||||
- Portainer (optional)
|
||||
- [NextCloud Custom Docker Image](docker/Dockerfile) with smbclient extensions
|
||||
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||
|
||||
[Docker Compose File](docker-compose.yaml)
|
||||
|
||||
[Check](doc/setup.md) for setup information.
|
||||
|
||||
## NextCloud CLI
|
||||
|
||||
@@ -24,3 +24,37 @@ _Currently hosted on an ubuntu lxc container with docker and portainer [+ inform
|
||||
docker exec --user www-data nextcloud php occ files:scan USERNAME
|
||||
|
||||
```
|
||||
|
||||
|
||||
## Setup
|
||||
|
||||
[Docker Compose File](docker/ocker-compose.yaml)
|
||||
|
||||
## Backup and Restore
|
||||
|
||||
Using [custom duplicati image](https://git.limbosolutions.com/kb/duplicati) to daily backups files and databases. Every action (backup/restore) creates an measurement in influxdb for reporting and alerts.
|
||||
|
||||
|
||||
### Duplicati - Default Options
|
||||
|
||||
Notify Influxdb.
|
||||
|
||||
--run-script-after=duplicati-influxdb-notify
|
||||
|
||||
### Duplicati - wiki job Options
|
||||
|
||||
Create db dump.
|
||||
|
||||
run-script-before-required:duplicati-mysql-backup
|
||||
|
||||
### Restore Database
|
||||
|
||||
```bash
|
||||
#select a file to import
|
||||
ls /db-dumps
|
||||
#select a file to import
|
||||
DB_FILE= "file name to import"
|
||||
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
||||
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||
```
|
||||
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
#image name : nextcloud-smbclient:25.0
|
||||
FROM nextcloud:25.0
|
||||
RUN apt update;apt install -y smbclient libsmbclient-dev;pecl install smbclient;echo "extension=smbclient.so" >> /usr/local/etc/php/conf.d/nextcloud.ini
|
||||
@@ -12,7 +12,7 @@ services:
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
app:
|
||||
image: nextcloud-smbclient:latest
|
||||
image: nextcloud-smbclient:25.0
|
||||
restart: always
|
||||
ports:
|
||||
- ${APP_PORT}:80
|
||||
@@ -29,17 +29,22 @@ services:
|
||||
duplicati:
|
||||
image: duplicati-mysqlclient:latest
|
||||
environment:
|
||||
- DB_HOST=${MYSQL_HOST}
|
||||
- DB_NAME=${MYSQL_DATABASE}
|
||||
- DB_USER=${MYSQL_USER}
|
||||
- DB_PASSWORD=${MYSQL_PASSWORD}
|
||||
- DB_BACKUP_TARGETFOLDER=${DB_BACKUP_TARGETFOLDER}
|
||||
- MYSQL_HOST=${MYSQL_HOST}
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- INFLUXDB_SERVER=${INFLUXDB_SERVER}
|
||||
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
|
||||
- INFLUXDB_ORG=${INFLUXDB_ORG}
|
||||
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
|
||||
- INFLUXDB_CLIENT_HOSTNAME=${INFLUXDB_CLIENT_HOSTNAME}
|
||||
- DB_BACKUP_TARGETFOLDER=/bck/db_dumps
|
||||
volumes:
|
||||
- duplicati_data:/data
|
||||
- db:/backup/db_data:ro
|
||||
- html:/backup/app_data:ro
|
||||
- duplicati_data:/backup/duplicati_data:ro
|
||||
- db-dumps:${DB_BACKUP_TARGETFOLDER}
|
||||
- db:/bck/db_data:ro
|
||||
- html:/bck/app_data:ro
|
||||
- duplicati_data:/bck/duplicati_data:ro
|
||||
- db-dumps:/bck/db_dumps
|
||||
ports:
|
||||
- ${DUPLICATI_PORT}:8200
|
||||
restart: unless-stopped
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.4 KiB |
@@ -1,46 +0,0 @@
|
||||
# Setup
|
||||
|
||||
- Docker
|
||||
_Currently hosted on an ubuntu lxc container with docker and portainer [+ information](https://git.limbosolutions.com/kb/lxc)._
|
||||
|
||||
- [NextCloud Custom Docker Image](../docker/Dockerfile) with smbclient extensions
|
||||
- [Duplicati Image with mySql client](https://git.limbosolutions.com/kb/duplicati/src/branch/main/docker/mysqlclient/README.md)
|
||||
|
||||
[Docker Compose File](../docker/docker-compose.yaml)
|
||||
|
||||
## Backup & Restore
|
||||
|
||||
Using [duplicati](https://git.limbosolutions.com/kb/duplicati) to daily backups of files and databases.
|
||||
|
||||
|
||||
### Restore Database
|
||||
|
||||
```bash
|
||||
#select a file to import
|
||||
ls /db-dumps
|
||||
#select a file to import
|
||||
DB_FILE= "file name to import"
|
||||
mysql --host db -uroot -p ${MYSQL_DATABASE} < /db-dumps/$DB_FILE
|
||||
#root password (root password is the enviromnent variable ${MYSQL_ROOT_PASSWORD})
|
||||
```
|
||||
|
||||
## HomeAssistant DashBoard
|
||||
|
||||

|
||||
|
||||
```yaml
|
||||
type: vertical-stack
|
||||
cards:
|
||||
- type: entities
|
||||
entities:
|
||||
- type: weblink
|
||||
name: Homepage
|
||||
url: http://cloud.limbosolutions.com
|
||||
- type: weblink
|
||||
name: Duplicati
|
||||
url: http://wansrv01.dev.lan:8203
|
||||
- type: weblink
|
||||
name: Git
|
||||
url: https://git.limbosolutions.com/marcio.fernandes/nextcloud/
|
||||
title: cloud.limbosolutions.com
|
||||
```
|
||||
Reference in New Issue
Block a user