# Newbie question: how to configure external database during setup

**URL:** <https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819>\
**Category:** ℹ️ Support\
**Tags:** reverseproxy, nc29, ncp, aio\
**Created:** [November 13, 2024, 2:58pm UTC](https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819 "2024-11-13T14:58:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NameHasBeenTaken](https://help.nextcloud.com/letter_avatar/namehasbeentaken/32/5_5575768a8748004e209b776fc1b2916d.png) [@NameHasBeenTaken](https://help.nextcloud.com/u/NameHasBeenTaken)\
**Post date:** [November 13, 2024, 2:58pm UTC](https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819/1 "2024-11-13T14:58:45Z")

</div>

Hello!

I have one of the silliest questions possible…  
But how do I choose an external database during installation?

I have installed the latest version of Nextcloud AIO and it works fine. During the installation I haven’t found any option to use external Database (e.x. Postgres).  
After installing I can see that it uses it’s own database container.

I didn’t find anything close to what was mentioned here: [https://docs.nextcloud.com/server/stable/admin\_manual/installation/installation\_wizard.html#database-choice](https://docs.nextcloud.com/server/stable/admin_manual/installation/installation_wizard.html#database-choice)

## The Basics

- Nextcloud Server version _(e.g., 29.0.5)_:
  - `29.0.8.1`

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Debian 12 Linux 6.1.0-27-amd64 x86_64`

- Web server and version _(e.g, Apache 2.4.25)_:
  - `Apache/2.4.62 (Unix)`

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `Nginx`

- PHP version _(e.g, 8.3)_:
  - `8.2.25`

- Is this the first time you’ve seen this error? (Yes / No):
  - `Yes`

- When did this problem seem to first start?
  - `2024-11-13`

- Installation method _(e.g. AIO, NCP, Bare Metal/Archive, etc.)_
  - `AIO: Docker container`

- Are you using Cloudflare, mod\_security, or similar? _(Yes / No)_
  - `No`

### Summary of the issue you are facing:

I have installed the latest version of Nextcloud AIO and it works fine. But I’d like it to use an external database. I haven’t found this option during installation process. Nothing close to what was mentioned here: [https://docs.nextcloud.com/server/stable/admin\_manual/installation/installation\_wizard.html#database-choice](https://docs.nextcloud.com/server/stable/admin_manual/installation/installation_wizard.html#database-choice)

How can I (or even can I) use an external database with Nextcloud AIO?

### Steps to replicate it (hint: details matter!):

1. Install Nextcloud
2. Observe the issue: no option to choose an external database presented during installation, or at lease I couldn’t find one.

---

<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:** [November 13, 2024, 4:37pm UTC](https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819/2 "2024-11-13T16:37:06Z")

</div>

hello @NameHasBeenTaken welcome to the community 🤝

As the name already implies there whole idea of AiO is to collect all important Nextcloud components under one hood - this is the reason why it comes with it’s own DB and there is no way to change it. If you need to you should check other installation methods e.g.

- [docker-compose-setup-with-notify-push-2024](https://help.nextcloud.com/t/nextcloud-docker-compose-setup-with-notify-push-2024/186721) - other variants listed there as well
- [Nextcloud docker compose setup with Caddy (2024)](https://help.nextcloud.com/t/nextcloud-docker-compose-setup-with-caddy-2024/204846)

---

<div class="post-metadata">

**Author:** ![NameHasBeenTaken](https://help.nextcloud.com/letter_avatar/namehasbeentaken/32/5_5575768a8748004e209b776fc1b2916d.png) [@NameHasBeenTaken](https://help.nextcloud.com/u/NameHasBeenTaken)\
**Post date:** [November 13, 2024, 5:45pm UTC](https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819/3 "2024-11-13T17:45:39Z")

</div>

Thank you very muck for the fast and comprehensive answer!

I was a bit confusing about not being able to define a database connection.

For now I will just stick with the AIO, but have to change the backup policy a bit…

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [November 21, 2024, 5:46pm UTC](https://help.nextcloud.com/t/newbie-question-how-to-configure-external-database-during-setup/209819/4 "2024-11-21T17:46:00Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
