You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Containers/NextCloud.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
This is the **core** of the IOTstack Nextcloud service definition:
6
6
7
-
```yml
7
+
```{ .yaml linenums="1" }
8
8
nextcloud:
9
9
container_name: nextcloud
10
10
image: nextcloud
@@ -58,41 +58,41 @@ The passwords need to be set before you bring up the Nextcloud service for the f
58
58
59
59
1. Be in the correct directory:
60
60
61
-
```
61
+
```console
62
62
$ cd ~/IOTstack
63
63
```
64
64
65
65
2. If the stack is running, take it down:
66
66
67
-
```
67
+
```console
68
68
$ docker-compose down
69
69
```
70
70
71
71
3. Erase the persistent storage area for Nextcloud (double-check the command *before* you hit return):
72
72
73
-
```
73
+
```console
74
74
$ sudo rm -rf ./volumes/nextcloud
75
75
```
76
76
77
77
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.
78
78
79
79
4. Bring up the stack:
80
80
81
-
```
81
+
```console
82
82
$ docker-compose up -d
83
83
```
84
84
85
85
5. Check for errors:
86
86
87
87
Repeat the following command two or three times at 10-second intervals:
88
88
89
-
```
89
+
```console
90
90
$ docker ps
91
91
```
92
92
93
93
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:
94
94
95
-
```
95
+
```console
96
96
$ docker logs nextcloud
97
97
```
98
98
@@ -211,7 +211,7 @@ Hint:
211
211
212
212
* It is a good idea to make a backup of any file before you edit it. For example:
213
213
214
-
```
214
+
```console
215
215
$ cd ~/IOTstack/volumes/nextcloud/html/config/
216
216
$ sudo cp config.php config.php.bak
217
217
```
@@ -232,7 +232,7 @@ Search for "trusted_domains". To tell Nextcloud to trust **all** of the URLs abo
232
232
233
233
Once you have finished editing the file, save your work then restart Nextcloud:
234
234
235
-
```
235
+
```console
236
236
$ cd~/IOTstack
237
237
$ docker-compose restart nextcloud
238
238
```
@@ -253,7 +253,7 @@ Could not reliably determine the server's fully qualified domain name
253
253
254
254
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:
255
255
256
-
```
256
+
```yaml
257
257
hostname: nextcloud.mydomain.com
258
258
```
259
259
@@ -271,7 +271,7 @@ Because it is an instance of MariaDB, Nextcloud_DB inherits the health-check age
0 commit comments