Skip to content

Commit 80e20f1

Browse files
authored
Merge pull request #83 from thelamer/master
adding dynamic readme
2 parents 111f233 + 736da7d commit 80e20f1

File tree

2 files changed

+202
-152
lines changed

2 files changed

+202
-152
lines changed

README.md

Lines changed: 141 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,180 @@
1-
[linuxserverurl]: https://linuxserver.io
2-
[forumurl]: https://forum.linuxserver.io
3-
[ircurl]: https://www.linuxserver.io/irc/
4-
[podcasturl]: https://www.linuxserver.io/podcast/
5-
[appurl]: https://nextcloud.com/
6-
[hub]: https://hub.docker.com/r/linuxserver/nextcloud/
1+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
72

8-
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
3+
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring :-
94

10-
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
11-
* [forum.linuxserver.io][forumurl]
12-
* [IRC][ircurl] on freenode at `#linuxserver.io`
13-
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
5+
* regular and timely application updates
6+
* easy user mappings (PGID, PUID)
7+
* custom base image with s6 overlay
8+
* weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
9+
* regular security updates
1410

15-
# linuxserver/nextcloud
16-
[![](https://images.microbadger.com/badges/version/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")[![](https://images.microbadger.com/badges/image/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/nextcloud.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/nextcloud.svg)][hub][![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Builders/x86-64/x86-64-nextcloud)](https://ci.linuxserver.io/job/Docker-Builders/job/x86-64/job/x86-64-nextcloud/)
11+
Find us at:
12+
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
13+
* [IRC](https://irc.linuxserver.io) - on freenode at `#linuxserver.io`. Our primary support channel is Discord.
14+
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
15+
* [Podcast](https://anchor.fm/linuxserverio) - on hiatus. Coming back soon (late 2018).
1716

18-
[Nextcloud][appurl] gives you access to all your files wherever you are.
17+
# PSA: Changes are happening
18+
19+
From August 2018 onwards, Linuxserver are in the midst of switching to a new CI platform which will enable us to build and release multiple architectures under a single repo. To this end, existing images for `arm64` and `armhf` builds are being deprecated. They are replaced by a manifest file in each container which automatically pulls the correct image for your architecture. You'll also be able to pull based on a specific architecture tag.
20+
21+
TLDR: Multi-arch support is changing from multiple repos to one repo per container image.
22+
23+
# [linuxserver/nextcloud](https://github.com/linuxserver/docker-nextcloud)
24+
[![](https://img.shields.io/discord/354974912613449730.svg?logo=discord&label=LSIO%20Discord&style=flat-square)](https://discord.gg/YWrKVTn)
25+
[![](https://images.microbadger.com/badges/version/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")
26+
[![](https://images.microbadger.com/badges/image/linuxserver/nextcloud.svg)](https://microbadger.com/images/linuxserver/nextcloud "Get your own version badge on microbadger.com")
27+
![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/nextcloud.svg)
28+
![Docker Stars](https://img.shields.io/docker/stars/linuxserver/nextcloud.svg)
29+
[![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Pipeline-Builders/docker-nextcloud/master)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-nextcloud/job/master/)
30+
[![](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/nextcloud/latest/badge.svg)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/nextcloud/latest/index.html)
31+
32+
[Nextcloud](https://nextcloud.com/) gives you access to all your files wherever you are.
1933

2034
Where are your photos and documents? With Nextcloud you pick a server of your choice, at home, in a data center or at a provider. And that is where your files will be. Nextcloud runs on that server, protecting your data and giving you access from your desktop or mobile devices. Through Nextcloud you also access, sync and share your existing data on that FTP drive at the office, a Dropbox or a NAS you have at home.
2135

22-
[![nextcloud](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nextcloud-icon.png)][appurl]
36+
37+
[![nextcloud](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/nextcloud-icon.png)](https://nextcloud.com/)
38+
39+
## Supported Architectures
40+
41+
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list).
42+
43+
Simply pulling `linuxserver/nextcloud` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
44+
45+
The architectures supported by this image are:
46+
47+
| Architecture | Tag |
48+
| :----: | --- |
49+
| x86-64 | amd64-latest |
50+
| arm64 | arm64v8-latest |
51+
| armhf | arm32v6-latest |
52+
2353

2454
## Usage
2555

56+
Here are some example snippets to help you get started creating a container.
57+
58+
### docker
59+
2660
```
2761
docker create \
28-
--name nextcloud \
29-
-p 443:443 \
30-
-e PUID=<UID> -e PGID=<GID> \
31-
-v </path/to/appdata>:/config \
32-
-v <path/to/data>:/data \
33-
linuxserver/nextcloud
62+
--name=nextcloud \
63+
-e PUID=1001 \
64+
-e PGID=1001 \
65+
-e TZ=Europe/London \
66+
-p 443:443 \
67+
-v </path/to/appdata>:/config \
68+
-v <path/to/data>:/data \
69+
--restart unless-stopped \
70+
linuxserver/nextcloud
3471
```
3572

36-
## Parameters
3773

38-
`The parameters are split into two halves, separated by a colon, the left hand side representing the host and the right the container side.
39-
For example with a port -p external:internal - what this shows is the port mapping from internal to external of the container.
40-
So -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080
41-
http://192.168.x.x:8080 would show you what's running INSIDE the container on port 80.`
74+
### docker-compose
75+
76+
Compatible with docker-compose v2 schemas.
77+
78+
```
79+
---
80+
version: "2"
81+
services:
82+
nextcloud:
83+
image: linuxserver/nextcloud
84+
container_name: nextcloud
85+
environment:
86+
- PUID=1001
87+
- PGID=1001
88+
- TZ=Europe/London
89+
volumes:
90+
- </path/to/appdata>:/config
91+
- <path/to/data>:/data
92+
ports:
93+
- 443:443
94+
mem_limit: 4096m
95+
restart: unless-stopped
96+
```
97+
98+
## Parameters
4299

100+
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
43101

44-
* `-p 443` - the port nextcloud web interface
45-
* `-v /config` - nextcloud configs
46-
* `-v /data` - your personal data
47-
* `-e PGID` for for GroupID - see below for explanation
48-
* `-e PUID` for for UserID - see below for explanation
102+
| Parameter | Function |
103+
| :----: | --- |
104+
| `-p 443` | WebUI |
105+
| `-e PUID=1001` | for UserID - see below for explanation |
106+
| `-e PGID=1001` | for GroupID - see below for explanation |
107+
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. |
108+
| `-v /config` | Nextcloud configs. |
109+
| `-v /data` | Your personal data. |
49110

50-
It is based on Alpine Linux with s6 overlay, for shell access whilst the container is running do `docker exec -it nextcloud /bin/bash`
111+
## User / Group Identifiers
51112

52-
### User / Group Identifiers
113+
When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`.
53114

54-
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" <sup>TM</sup>.
115+
Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.
55116

56-
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
117+
In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as below:
57118

58119
```
59-
$ id <dockeruser>
120+
$ id username
60121
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
61122
```
62123

63-
## Setting up the application
124+
125+
&nbsp;
126+
## Application Setup
127+
64128
Access the webui at `<your-ip>:443`, for more information check out [Nextcloud][appurl].
65129

66130
Please note you will need a MySQL/MariaDB or other backend database to set this up. Also please look [here](https://docs.nextcloud.com/server/11/admin_manual/installation/system_requirements.html#database-requirements-for-mysql-mariadb) for how to configure your database with regard to binlog format and installation.
67131

68132
If updating to nextcloud 12 you will need to comment out line `add_header X-Frame-Options "SAMEORIGIN";` in the file /config/nginx/site-confs/default
69133

70-
## Info
71-
72-
* Monitor the logs of the container in realtime `docker logs -f nextcloud`.
73134

74-
* container version number
75135

76-
`docker inspect -f '{{ index .Config.Labels "build_version" }}' nextcloud`
136+
## Support Info
77137

138+
* Shell access whilst the container is running: `docker exec -it nextcloud /bin/bash`
139+
* To monitor the logs of the container in realtime: `docker logs -f nextcloud`
140+
* container version number
141+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' nextcloud`
78142
* image version number
79-
80-
`docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/nextcloud`
143+
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/nextcloud`
144+
145+
## Updating Info
146+
147+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
148+
149+
Below are the instructions for updating containers:
150+
151+
### Via Docker Run/Create
152+
* Update the image: `docker pull linuxserver/nextcloud`
153+
* Stop the running container: `docker stop nextcloud`
154+
* Delete the container: `docker rm nextcloud`
155+
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
156+
* Start the new container: `docker start nextcloud`
157+
* You can also remove the old dangling images: `docker image prune`
158+
159+
### Via Docker Compose
160+
* Update the image: `docker-compose pull linuxserver/nextcloud`
161+
* Let compose update containers as necessary: `docker-compose up -d`
162+
* You can also remove the old dangling images: `docker image prune`
81163

82164
## Versions
83165

84-
+ **28.01.19:** Add pipeline logic and multi arch.
85-
+ **25.01.19:** Add php7-phar for occ upgrades.
86-
+ **05.09.18:** Rebase to alpine 3.8.
87-
+ **11.06.18:** Use latest rather than specific version for initial install.
88-
+ **26.04.18:** Bump default install to 13.0.1.
89-
+ **06.02.18:** Bump default install to 13.0.0.
90-
+ **26.01.18:** Rebase to alpine 3.7, bump default install to 12.0.5.
91-
+ **12.12.17:** Bump default install to 12.0.4, fix continuation lines.
92-
+ **15.10.17:** Sed php.ini for opcache requirements in newer nextcloud versions.
93-
+ **20.09.17:** Bump default install to 12.0.3.
94-
+ **19.08.17:** Bump default install to 12.0.2.
95-
+ **25.05.17:** Rebase to alpine 3.6.
96-
+ **22.05.17:** Update to nextcloud 12.0, adding required dependecies and note about commenting out SAMEORIGIN; line.
97-
+ **03.05.17:** Use community repo of memcached.
98-
+ **07.03.17:** Release into main repository and upgrade to php7 and Alpine 3.5.
166+
* **28.01.19:** - Add pipeline logic and multi arch.
167+
* **25.01.19:** - Add php7-phar for occ upgrades.
168+
* **05.09.18:** - Rebase to alpine 3.8.
169+
* **11.06.18:** - Use latest rather than specific version for initial install.
170+
* **26.04.18:** - Bump default install to 13.0.1.
171+
* **06.02.18:** - Bump default install to 13.0.0.
172+
* **26.01.18:** - Rebase to alpine 3.7, bump default install to 12.0.5.
173+
* **12.12.17:** - Bump default install to 12.0.4, fix continuation lines.
174+
* **15.10.17:** - Sed php.ini for opcache requirements in newer nextcloud versions.
175+
* **20.09.17:** - Bump default install to 12.0.3.
176+
* **19.08.17:** - Bump default install to 12.0.2.
177+
* **25.05.17:** - Rebase to alpine 3.6.
178+
* **22.05.17:** - Update to nextcloud 12.0, adding required dependecies and note about commenting out SAMEORIGIN; line.
179+
* **03.05.17:** - Use community repo of memcache.
180+
* **07.03.17:** - Release into main repository and upgrade to php7 and Alpine 3.5.

0 commit comments

Comments
 (0)