Skip to content

Commit 1f74ed2

Browse files
committed
change bash codefence to console, other opportunistic fences
Signed-off-by: Phill Kelley <[email protected]>
1 parent e76a25c commit 1f74ed2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

docs/Containers/NextCloud.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This is the **core** of the IOTstack Nextcloud service definition:
66

7-
```yml
7+
``` { .yaml linenums="1" }
88
nextcloud:
99
container_name: nextcloud
1010
image: nextcloud
@@ -58,41 +58,41 @@ The passwords need to be set before you bring up the Nextcloud service for the f
5858

5959
1. Be in the correct directory:
6060

61-
```
61+
```console
6262
$ cd ~/IOTstack
6363
```
6464

6565
2. If the stack is running, take it down:
6666

67-
```
67+
```console
6868
$ docker-compose down
6969
```
7070

7171
3. Erase the persistent storage area for Nextcloud (double-check the command *before* you hit return):
7272

73-
```
73+
```console
7474
$ sudo rm -rf ./volumes/nextcloud
7575
```
7676

7777
This is done to force re-initialisation. In particular, it gives you assurance that the passwords in your `docker-compose.yml` are the ones that are actually in effect.
7878

7979
4. Bring up the stack:
8080

81-
```
81+
```console
8282
$ docker-compose up -d
8383
```
8484

8585
5. Check for errors:
8686

8787
Repeat the following command two or three times at 10-second intervals:
8888

89-
```
89+
```console
9090
$ docker ps
9191
```
9292

9393
You are looking for evidence that the `nextcloud` and `nextcloud_db` containers are up, stable, and not restarting. If you see any evidence of restarts, try to figure out why using:
9494

95-
```
95+
```console
9696
$ docker logs nextcloud
9797
```
9898

@@ -211,7 +211,7 @@ Hint:
211211

212212
* It is a good idea to make a backup of any file before you edit it. For example:
213213

214-
```
214+
```console
215215
$ cd ~/IOTstack/volumes/nextcloud/html/config/
216216
$ sudo cp config.php config.php.bak
217217
```
@@ -232,7 +232,7 @@ Search for "trusted_domains". To tell Nextcloud to trust **all** of the URLs abo
232232
233233
Once you have finished editing the file, save your work then restart Nextcloud:
234234

235-
```
235+
```console
236236
$ cd ~/IOTstack
237237
$ docker-compose restart nextcloud
238238
```
@@ -253,7 +253,7 @@ Could not reliably determine the server's fully qualified domain name
253253

254254
You can silence the warning by editing the Nextcloud service definition in `docker-compose.yml` to add your fully-qualified DNS alias to at `hostname` directive. For example:
255255

256-
```
256+
```yaml
257257
hostname: nextcloud.mydomain.com
258258
```
259259
@@ -271,7 +271,7 @@ Because it is an instance of MariaDB, Nextcloud_DB inherits the health-check age
271271
272272
To update the `nextcloud` container:
273273

274-
```
274+
```console
275275
$ cd ~/IOTstack
276276
$ docker-compose pull nextcloud
277277
$ docker-compose up -d nextcloud
@@ -280,7 +280,7 @@ $ docker system prune
280280

281281
To update the `nextcloud_db` container:
282282

283-
```
283+
```console
284284
$ cd ~/IOTstack
285285
$ docker-compose build --no-cache --pull nextcloud_db
286286
$ docker-compose up -d nextcloud_db
@@ -298,7 +298,7 @@ Nextcloud is currently excluded from the IOTstack-supplied backup scripts due to
298298

299299
If you want to take a backup, something like the following will get the job done:
300300

301-
```
301+
```console
302302
$ cd ~/IOTstack
303303
$ BACKUP_TAR_GZ=$PWD/backups/$(date +"%Y-%m-%d_%H%M").$HOSTNAME.nextcloud-backup.tar.gz
304304
$ touch "$BACKUP_TAR_GZ"
@@ -314,7 +314,7 @@ Notes:
314314

315315
To restore, you first need to identify the name of the backup file by looking in the `backups` directory. Then:
316316

317-
```
317+
```console
318318
$ cd ~/IOTstack
319319
$ RESTORE_TAR_GZ=$PWD/backups/2021-06-12_1321.sec-dev.nextcloud-backup.tar.gz
320320
$ docker-compose rm --force --stop -v nextcloud nextcloud_db

0 commit comments

Comments
 (0)