# Nextcloud - Installation mit Docker

**URL:** <https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237>\
**Category:** 🇩🇪 Deutsch (german)\
**Created:** [August 21, 2020, 4:34pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237 "2020-08-21T16:34:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/6_22734026db12803ebb3e059622ac3534.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [August 21, 2020, 4:34pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/1 "2020-08-21T16:34:08Z")

</div>

Hallo Forum,

ist Nextcloud Docker ein offizieller Installationsweg für Nextcloud?

[https://hub.docker.com/\_/nextcloud/](https://hub.docker.com/_/nextcloud/)

Sollte man die Datenbank evlt. besser nativ installieren?

Welche Nachteile hat eine Nextcloud Docker Installation?

MfG  
nc-kay

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [August 21, 2020, 5:37pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/2 "2020-08-21T17:37:23Z")

</div>

Yes, this is official.

You will have to provide a database, but this can be in Docker as well.

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/6_22734026db12803ebb3e059622ac3534.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [August 22, 2020, 6:44am UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/3 "2020-08-22T06:44:13Z")

</div>

> [@KarlF12](#):
>
> You will have to provide a database, but this can be in Docker as well.

Hallo, welche Nach- bzw. Vorteile hat eine Datenbank in einem Docker Container?

Kann man Nextcloud-mit-Docker genauso absichern wie ein nativ installiertes Docker System?

MfG  
nc-kay

---

<div class="post-metadata">

**Author:** ![KarlF12](https://help.nextcloud.com/user_avatar/help.nextcloud.com/karlf12/32/46873_2.png) [@KarlF12](https://help.nextcloud.com/u/KarlF12)\
**Post date:** [August 22, 2020, 10:41am UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/4 "2020-08-22T10:41:47Z")

</div>

The database would be only for Nextcloud’s use, so it can be on an isolated Docker network with no ports exposed on the host. This is good for security. Setup can also be automatic if you use environment variables.

If you want to see an example, you can look here: [https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430](https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430) Note this configuration is for use with a reverse proxy.

> [@HowTo: Ubuntu + Docker + Nextcloud + Talk + Collabora](https://help.nextcloud.com/t/howto-ubuntu-docker-nextcloud-talk-collabora/76430/1):
>
> ```auto
> version: '3.7'
> 
> networks:
> nextcloud:
> 
> services:
> nextcloud:
> image: nextcloud
> container_name: nextcloud
> networks:
> - nextcloud
> ports:
> - "127.0.0.1:8080:80"
> volumes:
> - ${NEXTCLOUD_ROOT}/html:/var/www/html
> - ${NEXTCLOUD_ROOT}/data:/srv/nextcloud/data
> extra_hosts:
> - "${NEXTCLOUD_FQDN}:${NEXTCLOUD_IPADDRESS}"
> - "${COLLABORA_FQDN}:${NEXTCLOUD_IPADDRESS}"
> depends_on:
> - mariadb
> - redis
> environment:
> - NEXTCLOUD_TRUSTED_DOMAINS='${NEXTCLOUD_FQDN}'
> - NEXTCLOUD_DATA_DIR=/srv/nextcloud/data
> - MYSQL_DATABASE=nextcloud
> - MYSQL_USER=nextcloud
> - MYSQL_PASSWORD=${MYSQL_PASSWORD}
> - MYSQL_HOST=nextcloud-mariadb
> - REDIS_HOST=nextcloud-redis
> restart: unless-stopped
> 
> mariadb:
> image: mariadb
> container_name: nextcloud-mariadb
> restart: unless-stopped
> volumes:
> - ${NEXTCLOUD_ROOT}/mariadb:/var/lib/mysql
> environment:
> - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
> - MYSQL_PASSWORD=${MYSQL_PASSWORD}
> - MYSQL_DATABASE=nextcloud
> - MYSQL_USER=nextcloud
> networks:
> - nextcloud
> 
> redis:
> image: redis
> container_name: nextcloud-redis
> networks:
> - nextcloud
> restart: unless-stopped
> 
> ```

---

<div class="post-metadata">

**Author:** ![TorstenH](https://help.nextcloud.com/letter_avatar/torstenh/32/6_22734026db12803ebb3e059622ac3534.png) [@TorstenH](https://help.nextcloud.com/u/TorstenH)\
**Post date:** [August 22, 2020, 12:18pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/5 "2020-08-22T12:18:58Z")

</div>

I suggest to use nextcloud fpm docker image and letsencrypt (which includes nginx). Both together in the same docker network with linuxserver/mariadb image.

---

<div class="post-metadata">

**Author:** ![nc-kay](https://help.nextcloud.com/letter_avatar/nc-kay/32/6_22734026db12803ebb3e059622ac3534.png) [@nc-kay](https://help.nextcloud.com/u/nc-kay)\
**Post date:** [August 23, 2020, 12:35pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/6 "2020-08-23T12:35:10Z")

</div>

Hallo, wie kann bei einer Docker Installation das folgende Problem lösen?

> Derzeit wird als Datenbank SQLite verwendet. Bei größeren Installationen wird empfohlen, auf ein anderes Datenbank-Backend zu wechseln. Dies wird insbesondere bei der Benutzung des Desktop-Clients zur Synchronisierung empfohlen. Um zu einer anderen Datenbank zu migrieren, benutze bitte die Kommandozeile: ‘occ db:convert-type’, oder schaue in die [Dokumentation ↗](https://docs.nextcloud.com/server/19/go.php?to=admin-db-conversion).

> - SQLite is currently being used as the backend database. For larger installations we recommend that you switch to a different database backend. This is particularly recommended when using the desktop client for file synchronisation. To migrate to another database use the command line tool: ‘occ db:convert-type’, or see the [documentation ↗](https://docs.nextcloud.com/server/19/go.php?to=admin-db-conversion).

Wo gebe ich das “occ db:convert-typ” ein?

Passwort:  
[https://docs.nextcloud.com/server/11/admin\_manual/configuration\_user/reset\_admin\_password.html](https://docs.nextcloud.com/server/11/admin_manual/configuration_user/reset_admin_password.html)

Hallo, wie setzte ich das Nextcloud Admin Passwort bei einer Dockerinstallation zurück?

MfG  
nc-kay

Hallo, hat niemand Input für mich?

---

<div class="post-metadata">

**Author:** ![TorstenH](https://help.nextcloud.com/letter_avatar/torstenh/32/6_22734026db12803ebb3e059622ac3534.png) [@TorstenH](https://help.nextcloud.com/u/TorstenH)\
**Post date:** [August 26, 2020, 4:33pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/7 "2020-08-26T16:33:39Z")

</div>

Just search on this side  
[https://hub.docker.com/\_/nextcloud](https://hub.docker.com/_/nextcloud)  
for occ then you will see how to run occ commands.

Container ID is just the name of the container. Maybe you’ve coosen nextcloud then a command will look like this:

`docker exec --user www-data nextcloud php occ config:app:set previewgenerator squareSizes --value="32 256"`

---

<div class="post-metadata">

**Author:** ![TorstenH](https://help.nextcloud.com/letter_avatar/torstenh/32/6_22734026db12803ebb3e059622ac3534.png) [@TorstenH](https://help.nextcloud.com/u/TorstenH)\
**Post date:** [August 26, 2020, 4:35pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/8 "2020-08-26T16:35:51Z")

</div>

Here you can find how to reset the password:  
[https://docs.nextcloud.com/server/19/admin\_manual/configuration\_user/reset\_admin\_password.html](https://docs.nextcloud.com/server/19/admin_manual/configuration_user/reset_admin_password.html)

But: keep my other answer in mind and adjust the command to fire it to the docker container.

---

<div class="post-metadata">

**Author:** ![rakekniven](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rakekniven/32/67096_2.png) [@rakekniven](https://help.nextcloud.com/u/rakekniven)\
**Post date:** [August 26, 2020, 7:05pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/9 "2020-08-26T19:05:06Z")

</div>

Hallo,

in dieser Kategorie sprechen wir deutsch 🙂

Schönen Abend Euch noch !!

---

<div class="post-metadata">

**Author:** ![TorstenH](https://help.nextcloud.com/letter_avatar/torstenh/32/6_22734026db12803ebb3e059622ac3534.png) [@TorstenH](https://help.nextcloud.com/u/TorstenH)\
**Post date:** [August 26, 2020, 7:19pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/10 "2020-08-26T19:19:29Z")

</div>

Deep helps. Deepl hilft.

---

<div class="post-metadata">

**Author:** ![rakekniven](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rakekniven/32/67096_2.png) [@rakekniven](https://help.nextcloud.com/u/rakekniven)\
**Post date:** [August 27, 2020, 4:17pm UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/11 "2020-08-27T16:17:40Z")

</div>

Darum geht es doch nicht 🙂  
Bitte halte Dich an die Forengegebenheiten und erfreue Dich Deiner privaten Cloud.

Schönen Feierabend.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 15, 2024, 9:17am UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/12 "2024-12-15T09:17:16Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 15, 2024, 9:17am UTC](https://help.nextcloud.com/t/nextcloud-installation-mit-docker/90237/13 "2024-12-15T09:17:17Z")

</div>


