I am having Nextcloud up and running inside a Docker container. Alongside I have a bunch of other Docker containers that produce data. What is the best approach to get this server generated data into my Nextcloud instance?
I got two options in my mind:
-
Using
occ files:scan
:- I would write the server generated data directly into the data directory and do a
occ files:scan
for the affected path(s) afterwards. - Will this require maintenance mode though?
- I would write the server generated data directly into the data directory and do a
-
Using an explicit Docker container which runs a Nextcloud client:
- I would create another Docker container that runs a Nextcloud client. Server generated data will then go directly into the mounted directory that is getting synced by the client.
- Sounds like unnecessary overhead?
Does anybody have a good solution for this or an opinion on mine?