Replies: 2 comments 4 replies
-
Unfortunately, your findings are correct! You can't use one click app templates. The one click app template is a "forged" docker compose... Unfortunately, Docker doesn't expose Docker Compose functionality as an API. Docker Compose is just a CLI tool that talks to Docker API. CapRover only talks to Docker API, so we tried to mimic super basic functionalities of Docker Compose, of course, this means that there are many many features that work in Docker Compose but won't work in CapRover. Most of these shortcomings can be addressed via Service Override. From my brief research it looks like the volume driver is supported in service update. Maybe something like this works (totally untested, so probably doesn't work as is, but a good starting point) TaskTemplate:
ContainerSpec:
Mounts:
- Type: volume
Source: memos-rclone
Target: /var/opt/memos
VolumeOptions:
DriverConfig:
name: rclone
Options:
remote: b2:caprover-app/memos
vfs-cache-mode: full |
Beta Was this translation helpful? Give feedback.
-
Also, please feel free to update the docs if this approach works!! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been playing around with creating Docker volumes with the docker-rclone plugin. This docker-compose file seems to be working as expected (nothing special about memos, I'm just using it as a simple container to test with):
I can rm the service and recreate it and the data perisists.
However, I'm I'm not sure how to make this work with CapRover. I've tried adapting it to a template (as per the CapRover docker compose docs) like this:
This creates a usable memos app, but the memos-rclone volume is empty (no persisted data from B2).
I see in the "stateless with persistent data" docs that they are creating the volumes outside of CapRover. I was hoping to avoid doing this because I'd like to manage quite a few applications this way and manaually keeping all of the volumes in sync across all the nodes in a swarm seems like it's an accident waiting to happen.
Is there a way to have CapRover create an Rclone volume as part of the container/service creation?
Thanks for any pointers.
Adam.
Beta Was this translation helpful? Give feedback.
All reactions