How do I change the listen port for Nextcloud in Docker?

sk flag

I recently installed Nextcloud via Docker using the default commands in various tutorials. After doing so, I realized that I need Nextcloud to listen on different ports than 443 and 80 via Docker. How do I change this without rebuilding my install completely? I tried updating a .json file that was suggested, but it reverted back every time I started the container again (I stopped it before editing, of course).

in flag

If you are talking about published ports of your container, you need to delete and recreate it to change the ports.

If you built it properly, mounting a volume or external directory for the data, this is as trivial as re-running the modified original command.

I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.