Where does Dockge store data / Wiping & Re-Deploying Nextcloud AIO

I have Dockge installed on my TrueNAS running 24.10 (EE). Prior to this, I was using the IX App for Nextcloud, but I want to move to the AIO image using Dockge instead.

I set up Nextcloud AIO as a new stack in Dockge, and got everything running using temporary settings. Now, I want to clear that setup and re-build it using some new settings (different domain, file storage, etc.)

I deleted the Stack, and then re-created it using the new settings. When I did, it just came back with my old test environment, and never took the new settings.

How do I clear the old Stack, so that I can set up a new one using my new settings? I looked in my /mnt/data/apps/dockge folders, but don’t see any information about the Nextcloud stack once I removed it.

This depends on the compose file which specifies where the app’s data is stored.

Can you share a copy of the compose you are using (inside triple back ticks ```)

services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    init: true
    restart: always
    container_name: nextcloud-aio-mastercontainer # This line is not allowed to be changed as otherwise AIO will not work correctly
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config # This line is not allowed to be changed as otherwise the built-in backup solution will not work
      - /var/run/docker.sock:/var/run/docker.sock:ro # May be changed on macOS, Windows or docker rootless. See the applicable documentation. If adjusting, don't forget to also set 'WATCHTOWER_DOCKER_SOCKET_PATH'!
    network_mode: bridge # add to the same network as docker run would do
    ports:
      - 30028:8080
    environment:
      AIO_DISABLE_BACKUP_SECTION: true
      APACHE_PORT: 11000 # Is needed when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else). See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      APACHE_IP_BINDING: 0.0.0.0 # Should be set when running behind a web server or reverse proxy (like Apache, Nginx, Caddy, Cloudflare Tunnel and else) that is running on the same host. See https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
      NEXTCLOUD_DATADIR: /mnt/data/apps/nextcloud # Allows to set the host directory for Nextcloud's datadir. ⚠️⚠️⚠️ Warning: do not set or adjust this value after the initial Nextcloud installation is done! See https://github.com/nextcloud/all-in-one#how-to-change-the-default-location-of-nextclouds-datadir

volumes:
  # If you want to store the data on a different drive, see https://github.com/nextcloud/all-in-one#how-to-store-the-filesinstallation-on-a-separate-drive
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer # This line is not allowed to be changed as otherwise the built-in backup solution will not work

I guess the follow up question would be, if I want to store everything in /mnt/data/apps/nextcloud so that I know it’s in a Dataset I control and can back up, how can I move the entire image (not just NC’s internal Data) to that folder?

@Stux - I think I found it in:

/mnt/.ix-apps/docker/volumes/

When I run an ls -l, I get (Important stuff at the bottom, kinda like a Yogurt).

The Stack is deleted, but it looks like the files are still there under /.ix-apps/docker/

total 96
drwx-----x 3 root root      3 Nov  5 08:38 03c20046ac21c88f733745d9465a44930d98fa4d2ba554cf2a8ff014d95cfb3f
drwx-----x 3 root root      3 Nov 20 09:44 05700fb077cf6673f667be13c7c2ef009f7aaaade21c8ea3f86f5dcdba19029e
drwx-----x 3 root root      3 Nov  2 17:49 057841630e05d5cf3fe61e6226b1c39a93323cd8ebc4186e2b134044c969fcca
drwx-----x 3 root root      3 Nov  2 17:49 061cec18a43c0a588e03cbe1e8644b1a3a6644f59a4c1df35cc0b3c0d6f52376
drwx-----x 3 root root      3 Nov  2 18:06 09523a70174123803f50b82ab9ac5e1ed26a9879f8565760c0e9ad50f44a942a
drwx-----x 3 root root      3 Nov  5 10:24 0b76e2740a8e022eb8798f9a9387401f8a745331ba27c97eafabac5b6f8ced49
drwx-----x 3 root root      3 Nov 12 08:38 0f32e700f3a23f30abf4633a3935ecd39489011dec21f1da10cb8f9db1c4fa79
drwx-----x 3 root root      3 Sep 23 11:46 0f91bc503359ff798a01b392ec3c0a3a7ee31a2a8c19aa30738a99b85db84217
drwx-----x 3 root root      3 Sep 23 18:52 13fb253730d325dda96c4d645f79531189444903e206a4ede5514f76851e34f8
drwx-----x 3 root root      3 Nov  3 12:11 1466334b6f538660c041e330e1e765b6505d3da8b7f66156a343000484b10ddb
drwx-----x 3 root root      3 Nov  2 15:27 1951e26c0057784761f298272fa1293f19c30e036fd87c657053926fbfdb2c74
drwx-----x 3 root root      3 Sep 23 13:11 19e8c37b1d7dfd96b0cfb394f9212d1fab9e9feb02f3a23c3bea99ad718d6a29
drwx-----x 3 root root      3 Nov  2 16:09 1bc303ae728abe4c8ed7974f01d040af174fcab2fd3e2ece9bde667898dfd89d
drwx-----x 3 root root      3 Nov  5 10:24 1cd1cbd18dcdf0285a703f23330a854b430f4babef7aaa6bf43661b7328b0205
drwx-----x 3 root root      3 Sep 26 14:04 1ef2c3c8ec95021d8154319c6604279a0550b2ad1acd426548d82b6715d0e1a8
drwx-----x 3 root root      3 Nov  6 14:00 20007aeea2795c15be143329d3d43efe7bda57946f0e5132f836869e437038f9
drwx-----x 3 root root      3 Nov  3 12:26 210c0241ec98a80ee31791806a22f7d3debad3310ea7123bad8269ce118d3d47
drwx-----x 3 root root      3 Nov  2 17:40 21d0e7a65b945039e2e5688cc9c3875d56c514594ff574fabd75142cc943135a
drwx-----x 3 root root      3 Nov  2 18:54 241470a51437539029e4a02e0d38fd5c48020bfd63af8f08ac7125af228001cd
drwx-----x 3 root root      3 Nov  2 16:18 247a9b75690c9bf3fb91346c482a7a7b3acb73d15a4f2c166c47dd349625d568
drwx-----x 3 root root      3 Nov  5 11:34 24a1d0b914128c0fe6e1df0d04c99b12ca2697c7daaad96c2291dd745ed92983
drwx-----x 3 root root      3 Nov  2 18:54 2794ab45b87cbb724a4f866a797daa1685436b11c3f4e2d14fe4922032f21d2b
drwx-----x 3 root root      3 Nov  2 18:37 2aa4fab8c8aade97323444fe9b3d5861a7e36cd15e44f7923d383d7dffbbd100
drwx-----x 3 root root      3 Nov  5 08:38 2db0454582c738649665635e21330a5117551bbc272c385d6f7420ab940b51af
drwx-----x 3 root root      3 Nov  2 18:06 2e45483c11e27ccccc2485b01b97af15f2654d066ea575ea679542e1d666e624
drwx-----x 3 root root      3 Sep 23 13:21 32d01b8283c75371249ee4dc72271a8d04d382718cb47236661cc2bae6d637f6
drwx-----x 3 root root      3 Nov  3 19:29 353faed1959784e3d5fb961821a1367e58312a41ed0db245e1ff4514af135308
drwx-----x 3 root root      3 Nov  3 19:23 37ee53a166d30d56e863dfb41f133038a1379ee22d164500e2c037b56efba128
drwx-----x 3 root root      3 Nov  2 16:25 3990b37b5f6396a299ac5e0342539cd41e221a59c00e65847ee3ab30283e464a
drwx-----x 3 root root      3 Nov  5 08:38 3b2a621d4e657fe78e94b2d86825ce0996bc0f6a1c708fcd3807496a50aac584
drwx-----x 3 root root      3 Nov  2 16:50 3de62ccbe9eedb3af13bed42ebc8c4208fbe0877070dea0c5d9802027816cab5
drwx-----x 3 root root      3 Nov 19 08:22 42b42d477a6054029c456cc0c725305b4a747290876a1d2087d222ea29709289
drwx-----x 3 root root      3 Nov 18 13:06 42e50952e4ddf2e8c5b3af416a91dcd70466b3a3bf5fe5a2b70db76f43e4fb1d
drwx-----x 3 root root      3 Nov  5 08:38 45a6d583b5b5cf8e54fe475507e0fe5381ab36218c990a3c2f7640be98c78531
drwx-----x 3 root root      3 Nov  3 12:26 46c53611b75a5050ad80102b68cdf766df3c54a603f027fdaaf052de0c9935c2
drwx-----x 3 root root      3 Nov  2 18:37 48fae58b76e88c925beff38b9747d43215a9f273e5b72b2f9ec821fdd51b31f0
drwx-----x 3 root root      3 Nov  2 16:18 49fb5141775507a5fbc19b47b3eba0810cb3f60bc8396892333aaa9256f70cd8
drwx-----x 3 root root      3 Nov  3 19:29 4a1c8ee8b704a5eea7442bb3c3deed0715979f11b4504b104d5aa20497fdc845
drwx-----x 3 root root      3 Nov  7 15:13 4a63ce63a09bf8c5237374e16a8d0a9b5bb8b94f9618fc30939a84a01dd99b21
drwx-----x 3 root root      3 Nov  5 08:37 5184aa30192435ab2c32fc5c31bb610b536ec6337d8e62814965552ab42e77da
drwx-----x 3 root root      3 Nov  6 20:13 5605b7bbc0061db738d79016f276a87254fb60d3ac8367f42e516637d6378b3b
drwx-----x 3 root root      3 Nov  2 16:50 5b27425431e72f6231718d173a49aea0d9625d1963d565f4a4d9347c0bea4c9f
drwx-----x 3 root root      3 Nov  2 18:06 5bf13e79d74efd6b41adf319ef749a095734423a6421eda6070c4c098e4aee8b
drwx-----x 3 root root      3 Nov 20 09:44 5ef8177b30eccd2f123ebef6d9ce55cd7186ef2ecab53f01c8e4757548aa8083
drwx-----x 3 root root      3 Nov  3 12:11 61251ba4980a1a4622246860f82348c814e814332bf4665d78c88b7b44bcec8d
drwx-----x 3 root root      3 Nov  2 15:27 6208a290adcb4f371ff573bfd12a2e94d65d735e58d41235d49ddac3e2fa182a
drwx-----x 3 root root      3 Nov  2 14:38 63288c9aedabc75d12efe6446fcc4393b5708b9afee50dff1a477fa923ddf084
drwx-----x 3 root root      3 Nov  6 14:00 653bddfa506e68343e2c7df6682e3e3a2eaff4463a2e52e10acd66c467934bb6
drwx-----x 3 root root      3 Nov  6 20:13 662d3ae32c6c0ab7792ae51d6592cd6d988b3fc0a8382a02e9b68e672f142a2c
drwx-----x 3 root root      3 Nov  2 18:06 6848cce7fc34cca44086be83b2a3527756dcd0aff244277448b6e65ac17f3f4a
drwx-----x 3 root root      3 Nov  3 19:29 68bb6681a4796b30ac4f19a3caceb131a608b35894a95a9f0efe6358bbcde6d7
drwx-----x 3 root root      3 Nov  2 16:50 694d80c1e81657982d0a8ef95ee030e6b90329a85719d6b352cf075131645d15
drwx-----x 3 root root      3 Nov  3 19:23 6b2d4e05c2405a846d2b5a0e3e514e6965cc99d3e2f2e81085d7cd2ae0f78d00
drwx-----x 3 root root      3 Nov  2 18:37 6b33cb208651a5f162321f55d5a4c9a5455233b7def0de944d95ba8e56af39b7
drwx-----x 3 root root      3 Nov  7 15:13 6bf9174603fa461ec5b975f263be5202ae1cdeeceae1e9df9bd5444e4460bdc5
drwx-----x 3 root root      3 Nov  4 12:18 6cae2b728c527f9191da5ec3bd1364fcba57d03af19c4e7a7a7026e0d9cdb38f
drwx-----x 3 root root      3 Nov  4 13:18 6ccdf8ae9cfa58bfe260ad8abaabebab0e2b802c907017ce8b88866e2bba09a9
drwx-----x 3 root root      3 Nov  6 20:13 6e0374b0f696ed010ce9499843c7671b3ac260a9c9969cbb1208b00edc45b45e
drwx-----x 3 root root      3 Sep 23 18:41 6f0c3384547d6329341fe67ff92caae0ba9a294027bdec6081c8eecb4d4eeadf
drwx-----x 3 root root      3 Nov  2 16:09 6f0cacdbf25fd5296998f319bf131e97f18ee4a3ddde6c130a085c0333b4add4
drwx-----x 3 root root      3 Sep 23 19:38 707647d604fa7af67a2944c88c57c58b818accc2bb3cd3aab89e60eaf15e9c75
drwx-----x 3 root root      3 Nov 19 08:23 739e4dc24bbcb1aa12f7a847b4af6c64cc27270b2d1d6b4e2f6616871215355a
drwx-----x 3 root root      3 Nov  4 10:08 74f656b1e6b419643dcdb872142452c17d920be85f16c21301cd84220a910789
drwx-----x 3 root root      3 Nov  5 08:38 7626fb2ba39e4952c68f80d17cb4b034f6252844e8049ff13645ce33352f5268
drwx-----x 3 root root      3 Nov  2 18:37 78fdd91da1336fe66e426b31fa8f84b4b2eb10a61d9b570ffe8004bdf2087a57
drwx-----x 3 root root      3 Nov  2 18:54 7a89a772822d2ffdb69d36804a49dc1ad13aac247c91580421f8b8f0297a2aa6
drwx-----x 3 root root      3 Nov  7 12:01 7ba76f549565c1930f14d6e4c2ba89a2f591f6cbdf9132754dc4cb4543e4a509
drwx-----x 3 root root      3 Nov  3 12:11 8231ecd288b4d99ac2bb398969ef51a91bd356d005ad1dcda316839137888fce
drwx-----x 3 root root      3 Nov 19 13:19 825eedfbf144be9dd8c11306244c65189601d8aa2a6c0a69023c8e12cbdafb3e
drwx-----x 3 root root      3 Nov  4 10:08 86fc1aaf2f478faec13efb8e512636200c330e7f1850d82ed29170ef170b399b
drwx-----x 3 root root      3 Nov 13 08:54 8758ad1feaca8fb748ed346754386e3711707fc657ba239f8a51d49bed638f1e
drwx-----x 3 root root      3 Nov  6 20:13 88587df9cd6040531d04191df19fcb45290c29ead7e865a01939298c341262c7
drwx-----x 3 root root      3 Nov  3 12:26 8958a1ee54fa2f977edeb598092b2a65a93fe6198b09881eed2160fdeb21f540
drwx-----x 3 root root      3 Sep 26 14:01 8d334f04d06a1f35eae41f8773262557f77d4f5c78b4b5375b3aede0997b15dc
drwx-----x 3 root root      3 Nov  2 16:02 8dd76caf6cfa2c092e1508c0f37319cd652ac6816d34a6fc3e5b421324c16694
drwx-----x 3 root root      3 Nov  2 16:11 8e1e292089e5ad50f67b6d194549e62cf8c272ffd27d5c15586e0265ebf8fab2
drwx-----x 3 root root      3 Nov 10 09:32 9075d28fa121a9afd89327fb2a038d359792ac31a6c97c246d96cc84b516d2a0
drwx-----x 3 root root      3 Nov  3 19:18 90e320e4befdf0bac380e35fa0e8751696848f203e230fbd63ef6ac5305929f8
drwx-----x 3 root root      3 Sep 23 11:51 9326f7c46f19509f3603c5c47e2217dc0034479c2e7f1b5621ffed877244419c
drwx-----x 3 root root      3 Nov  2 17:40 93694f7ccd9f5f19c955e46de15811a3c506d14ca812ecb803a573e687575b3d
drwx-----x 3 root root      3 Nov  2 16:09 96af67af821291231b062c8b23c4911e9ae335d3f753a770c586fa1688722551
drwx-----x 3 root root      3 Nov  6 14:00 97a7f0c109d8011efe02ed6ed4e62486bf67c175351ed2a2d6608061db7ae3b8
drwx-----x 3 root root      3 Nov  2 17:49 97edad56d036b864ea1ca782094bc7f68736520f109d81565e7b6931a0f8725c
drwx-----x 3 root root      3 Nov  7 15:13 99f1555676fc06a68ee0151f7ffbf8b0d1dfb3c66bbd0d90f2529caaf1d2fbcb
drwx-----x 3 root root      3 Nov 20 09:44 9ab0fa8caa71c3c0e52869e103d92b9a5b79631137422a4e1c1ce99bfa9d0b12
drwx-----x 3 root root      3 Sep 21 18:39 9d1d82895cc8c59cbfc4c9e10f7ef3f1217b0305ae9f416fa7cc333aa3eefdfe
drwx-----x 3 root root      3 Nov  2 16:50 9df586fef230c9e9a0a0e28978a994e725f3356bf710fdc10c4c410f33b80ca5
drwx-----x 3 root root      3 Nov 13 14:28 9dfbba8d5c935481b9dd423f5c630d2ac707de6d842d9bee21d94cd421a982f8
drwx-----x 3 root root      3 Nov  3 12:26 a0632f2cf8235410646d4f4092a5c228ffe0898aefded0e22c141f83cdf2f97e
drwx-----x 3 root root      3 Nov  1 14:29 a144df598a2b0275cce69717e0903c893971416dae36fa0ca6162a0feb0cd0e8
drwx-----x 3 root root      3 Nov  3 12:11 a333dce6dd4816369bffec8831f5bb8b6f8c724e576d78f7e6898451a79e2c89
drwx-----x 3 root root      3 Nov  6 14:00 a3a242064b53c0d97dd5cdb44e840a40927069488cf0652ee693392e9027c018
drwx-----x 3 root root      3 Nov 10 09:32 a6b4b8f58b2ddb000e0b514d222596595285699e3b07755b1fc7d27099e5422c
drwx-----x 3 root root      3 Sep 23 19:37 aa538c625340a3349a493ab371f07d95dfccb3cf3f3719acc05aa1a00cee5d9f
drwx-----x 3 root root      3 Nov  2 15:27 ac966ff61dccb62f4e409f4bef43605b8db702e2ce756eda291409217d1885d3
drwx-----x 3 root root      3 Nov  2 16:09 acbfbf25b9f506987563bd01a62932ba3bf6618c77d6777b028e155b0f4c026b
drwx-----x 3 root root      3 Nov  2 19:17 aceacc0462ab2ef6d65d829efa2eff660b5359bf9fe1b9d5908ebcd5ff017de3
drwx-----x 3 root root      3 Nov  2 18:54 b12ed831cb258f446136301ed0981541a82042740287647d47339ff5d0ff54ba
drwx-----x 3 root root      3 Nov  3 19:23 b194e54f1f6e2b9e01b8d71b530131017c569249ee9933a9d88261e07e58f4ab
drwx-----x 3 root root      3 Nov  3 19:23 b1dbdaecc4276bc4b506d226c6dfb42fa4006e2e945ee9717122216398d46685
drwx-----x 3 root root      3 Nov  2 17:49 b46dbb977bdc36bceda5a7de96ac5b7c1eca3b9c01439d4a9304b10f95fc7ed2
drwx-----x 3 root root      3 Nov  3 19:53 b609d743855ce777d1224dadeee18e507d8b5d80bdfdb2145ff79fec98bd7ce0
drwx-----x 3 root root      3 Nov  3 19:18 ba3108629d58d220845911e031a345ec8587e8e37f991e54a2360a45a4b2186b
brw------- 1 root root 0, 181 Nov 20 15:31 backingFsBlockDev
drwx-----x 3 root root      3 Nov  2 15:27 bafea51721f441c29a7e2f804549f15517a80a1825712bf94b3c06f53606c03e
drwx-----x 3 root root      3 Nov  2 19:17 bc39c72af0de5db07ba2041e8ceb60e8680cd338baee94fa9b9d1bee7e64c371
drwx-----x 3 root root      3 Nov  2 16:25 bfe748f749f6104b0251ba238722ce5a25e69d1b803c86cd25b32cd1f8456560
drwx-----x 3 root root      3 Nov  2 19:17 c7143fe243d740fcae67727e966473a087ffef7e5c8c73894635812aaf39432d
drwx-----x 3 root root      3 Nov  3 19:23 c798e2932f7da05bb545f3e141cf5d82202103ffbd35384d6ed78d08b05e7102
drwx-----x 3 root root      3 Nov  4 10:08 c7eaa092f97ee046b0ff755c873123037769b717e399ef45700d898a625902f2
drwx-----x 3 root root      3 Nov  2 19:17 c95d3d803d104e459d2b60f618d0a02b8b2503dbab7bf3fee33a9e1921ea8a6f
drwx-----x 3 root root      3 Nov  7 12:01 c9dd04a0d43aa9b528e99b6f5e024ce31523bdc6d9a919fbba346fcefaa7c98c
drwx-----x 3 root root      3 Nov  3 19:18 cc895e1d6d2b9175fa97fc3f4d9525280567308ccac7933d85716cc7e11be5aa
drwx-----x 3 root root      3 Nov  3 19:18 ccb0b916072ab296dbc4a0ab26eb995997f629227d186fa8e08132e07e91f0d8
drwx-----x 3 root root      3 Nov  6 14:00 ce01bdd0f05182ebee3a1aa3a515a4d9575d456f1c7551a3b45148046393ea6c
drwx-----x 3 root root      3 Nov  2 16:50 d022124d9302ffaa18a7a62349361fb5c5efb979c93a6a3e9d6489453b2ce58a
drwx-----x 3 root root      3 Nov 13 14:28 d05bff152cb93a2766ccbbbc1a85a4e7af3c4b04f260fed1a0e82eb41a0566bd
drwx-----x 3 root root      3 Nov  2 17:49 d20f63311eac6eeadbb3aeffa22c36fbcc891aa9ae4c0ee9c1a1484ba180dec1
drwx-----x 3 root root      3 Nov  2 19:17 d2e127783879b5c59581d556a8d455dd1263dccaaa28090248d46078b0e3b6f6
drwx-----x 3 root root      3 Nov  5 08:37 d9dba8a9ac90df2a849f767d60368c0fea5460c9646c17134eb72bc71afbb310
drwx-----x 3 root root      3 Nov  3 19:29 e4f27f0204c2786bfed120f7e296d3b714d4478c020a91dce46c746da68b72e2
drwx-----x 3 root root      3 Nov 13 14:28 e7b648b577399a0eb7cd4eb08721e7b0660f0e4f82455943b64d363eb87aaa16
drwx-----x 3 root root      3 Sep 23 18:41 e898da847d072fd6e8346026d9d9c4f2244a34d1869f9dfffb925bb2304cafb5
drwx-----x 3 root root      3 Sep 23 13:21 ea9c856ac9a38307fccd88c37b9c72c3d312e4e0c0ab5cfdd648b065f7ced673
drwx-----x 3 root root      3 Nov  2 16:13 eaddfbdb8ad6e61d8e12a6f0cc6e7429c8b5700b60460193fd7a45af79910330
drwx-----x 3 root root      3 Nov  3 19:29 eb7c97749de275432635653b10bae207b851e0c66d1c9cc235de0f9f4bbecc3d
drwx-----x 3 root root      3 Nov  3 19:18 eca3d1c5d54437385faf55f73b3cf2d1d7882389545108da71da561fd5e2f37f
drwx-----x 3 root root      3 Nov 18 13:06 ef0eaa6d6af9721deaa99b487f2e89a41a6da0bd06b2c37f0b1b5050176de8a9
drwx-----x 3 root root      3 Nov 13 08:54 efab880e44c96adc8aee3b9689d13dd1ec2b40e0f7c679e8db9281c0439c3b1c
drwx-----x 3 root root      3 Nov  2 18:54 f1bf453d755c8e04d994ed7d90b475787c113b8330c007ab5923c466724b350a
drwx-----x 3 root root      3 Nov 19 08:23 f343cb6fcc740877a18f515a3439f79e04468095614773597dd4d323a8d619c5
drwx-----x 3 root root      3 Nov  5 11:34 f4118d67aa259b05e29c0ae12b4962a3b2b2a305b8d7d994adc429c435ad3339
drwx-----x 3 root root      3 Nov  2 16:25 f618e2bf3d66a03ea19c6032ee62395622b06bf127105d8e48f043596123b76d
drwx-----x 3 root root      3 Nov 12 08:38 f685125bd2a0d4196de08749d800c4622d8259e91973f808fcea2bc86c93a378
drwx-----x 3 root root      3 Nov  4 13:18 f6d34469b004a9c189e88cc512561eabe38b8ab4fd8fda33daba690963ad57c4
drwx-----x 3 root root      3 Nov  2 17:40 f7e85a29907af2ba2f36c1ee134da85bec2a0cbff3af32a38cffa50915427ec1
drwx-----x 3 root root      3 Nov  7 15:13 f8d68a7e6b77e5015855be49231db852ebd5bbfcb0716e7515ac6c496186a9e2
drwx-----x 3 root root      3 Nov  2 17:40 fa7779f7460f183d2f693e117f1f24e7e0bcab7dc6a7f7086c41b2d464d6a07e
drwx-----x 3 root root      3 Nov  2 18:06 fe225c4999f415b147e24bf5783ae15e2ae11e9adba8cfa26b0383f264d9beff
drwx-----x 3 root root      3 Nov  4 12:18 fe3731789ea31c80c930b49923cd3db7e9c4c7da6e6e9c2adb14883d7edcd0d3
drwx-----x 3 root root      3 Nov  6 20:13 ff387615d57430dfba747f7e28260d1d4b3d61b5e3963feb32e2cbd3f86d2745
drwx-----x 3 root root      3 Nov  2 15:36 ix-plex_tmp
drwx-----x 3 root root      3 Nov  8 18:12 ix-transmission-test_tmp
drwx-----x 3 root root      3 Nov 20 09:46 ix-transmission_tmp
-rw------- 1 root root 131072 Nov 20 15:31 metadata.db
drwx-----x 3 root root      3 Nov 18 08:43 nextcloud
drwx-----x 3 root root      3 Nov 20 11:37 nextcloud_aio_apache
drwx-----x 3 root root      3 Nov 20 11:35 nextcloud_aio_database
drwx-----x 3 root root      3 Nov 20 11:35 nextcloud_aio_database_dump
drwx-----x 3 root root      3 Nov 20 11:35 nextcloud_aio_elasticsearch
drwx-----x 3 root root      3 Nov 19 08:50 nextcloud_aio_mastercontainer
drwx-----x 3 root root      3 Nov 20 11:36 nextcloud_aio_nextcloud
drwx-----x 3 root root      3 Nov 20 11:36 nextcloud_aio_nextcloud_data
drwx-----x 3 root root      3 Nov 20 11:35 nextcloud_aio_redis```

Right

This is not a “host mount” but rather a docker volume, which is specified in the volumes section.

You can run docker volume ls to see them all, and rm the actual one (while the stack is down)

If you are 100% certain you want to lose the volume you can run docker compose down -v in th next cloud stack directory in the shell which will erase the volume as the stack is taken down.

I don’t use docker volumes on TrueNAS, preferring to use host mounts.

This makes sense, thank you. I agree on using the mounts, my initial run was getting it set up and working as a test environment first, with plans to nuke it and rebuild once I was familiar with the system. Only… it didn’t go away when I took it down.

This is what I needed - thank you for the assist!

As another option, I set up nextcloud with the nextcloud:latest image, rather than the very complex and cumbersome (IMHO!) AIO image, which seems to create all sorts of containers and dependencies on its own.

My compose file (for deployment in Dockge), which uses host mounts, is as follows:

services:
  db:
    image: mariadb:10.6
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    restart: unless-stopped
    volumes:
      - ./db:/var/lib/mysql:Z
    environment:
      - MYSQL_ROOT_PASSWORD=changeme
      - MARIADB_AUTO_UPGRADE=1
      - MARIADB_DISABLE_UPGRADE_BACKUP=1
    env_file:
      - db.env
  redis:
    image: redis:alpine
    restart: unless-stopped
  app:
    build:
      dockerfile: ./dockerfile
    restart: unless-stopped
    ports:
      - 192.168.1.5:8089:80
    volumes:
      - ./nextcloud:/var/www/html:z
    environment:
      - MYSQL_HOST=db
      - REDIS_HOST=redis
      - PHP_MEMORY_LIMIT=1024M
      - PHP_UPLOAD_LIMIT=1024M
    env_file:
      - db.env
    depends_on:
      - db
      - redis
  cron:
    image: docker.io/library/nextcloud:latest
    restart: unless-stopped
    volumes:
      - ./nextcloud:/var/www/html:z
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis
volumes:
  db: null
  nextcloud: null
networks: {}

(obviously adjust password and IP:ports to suit your setup.

In terms of files in my nextcloud, I mount a SMB share (which I’ve set up on TrueNAS) as a network share.

This means instead of a dedicated data folder hidden away, I simply point nextcloud at a network share.

Most nextcloud images I’ve seen (including the official docker non-AIO image) need to have SMB functionality added, which means I use a dockerfile to add SMB functionality to the nextcloud:latest image. If you use NFS, I don’t think this is needed.

The dockerfile (referred to in the compose file above) is:

FROM nextcloud:latest
RUN apt update && apt install -y smbclient libsmbclient-dev nano sudo && rm -rf /var/lib/apt/lists/*
RUN pecl install smbclient
RUN docker-php-ext-enable smbclient

Then, once in your nextcloud web GUI, go to “Administration settings > External storage” and enter the details for your network share you want to access.

TLDR; using this approach, you don’t have to worry about migrating or losing your nextcloud data (unless your SMB/NFS share goes kaput!).

1 Like

I did ponder this, but I wanted an image specifically maintained and supported by Nextcloud, which the AIO is.

I was able to mount the Data path in Nextcloud to a Dataset on Truenas, outside the container, so my data is safe - even if I need to rebuild the nextcloud app, my files are good to go and easy to access.

FROM nextcloud:latest

technically, the base image is maintained by nextcloud :wink:

BTW, you can use dockerfile_inline to add the dockerfile contents directly to the compose…

build:
  context: .
  dockerfile_inline: |
    FROM baseimage
    RUN some command   
1 Like