feat: on production
This commit is contained in:
25
README.md
25
README.md
@@ -1,5 +1,26 @@
|
|||||||
# nextcloud-utils
|
# cloud.limbosolutions.com
|
||||||
|
|
||||||
caso seja necessário forçar o scan de ficheiros
|
Welcome to public repository of my [wiki](https://cloud.limbosolutions.com)
|
||||||
|
|
||||||
|
Using [NextCloud](https://nextcloud.com/)
|
||||||
|
|
||||||
|
## 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-compose.yaml)
|
||||||
|
|
||||||
|
[Check](doc/setup.md) for setup information.
|
||||||
|
|
||||||
|
## NextCloud CLI
|
||||||
|
|
||||||
|
``` bash
|
||||||
|
|
||||||
|
#force file scan for specfic user
|
||||||
docker exec --user www-data nextcloud php occ files:scan USERNAME
|
docker exec --user www-data nextcloud php occ files:scan USERNAME
|
||||||
|
|
||||||
|
```
|
||||||
|
|||||||
BIN
doc/images/nextcloud-homessistant-dashboard.png
Normal file
BIN
doc/images/nextcloud-homessistant-dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
46
doc/setup.md
Normal file
46
doc/setup.md
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
# 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
|
||||||
|
```
|
||||||
@@ -43,8 +43,27 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- ${DUPLICATI_PORT}:8200
|
- ${DUPLICATI_PORT}:8200
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
code-server:
|
||||||
|
image: lscr.io/linuxserver/code-server:latest
|
||||||
|
environment:
|
||||||
|
#- PUID=1000
|
||||||
|
#- PGID=1000
|
||||||
|
- TZ=Europe/London
|
||||||
|
- PASSWORD=${ADMIN_PASSWORD} #optional
|
||||||
|
#- HASHED_PASSWORD= #optional
|
||||||
|
- SUDO_PASSWORD=${ADMIN_PASSWORD} #optional
|
||||||
|
#- SUDO_PASSWORD_HASH= #optional
|
||||||
|
#- PROXY_DOMAIN=code-server.my.domain #optional
|
||||||
|
- DEFAULT_WORKSPACE=/config/workspace #optional
|
||||||
|
volumes:
|
||||||
|
- code-server_config:/config
|
||||||
|
- html:/data/nextcloud_html
|
||||||
|
ports:
|
||||||
|
- 8445:8443
|
||||||
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
html:
|
html:
|
||||||
db:
|
db:
|
||||||
duplicati_data:
|
duplicati_data:
|
||||||
db-dumps:
|
db-dumps:
|
||||||
|
code-server_config:
|
||||||
|
|||||||
Reference in New Issue
Block a user