caprover / one-click-apps

Community Maintained One Click Apps (https://github.com/caprover/caprover)
Apache License 2.0
544 stars 534 forks source link

Add support for deploy configuration #473

Open eric-mathison opened 3 years ago

eric-mathison commented 3 years ago

Please add support for the deploy configuration. More specifically, support for the placement and resources sub-options.

It would be great to have the ability to set constraints and limitations before deploying the app. This is most important when deploying persistent type apps where auto placement deploys the app to a node with little room.

githubsaturn commented 3 years ago

Supporting these less common use cases is intentionally out of scope for CapRover:

One example is: "Add a flag to customize the placement constraints of containers". This is definitely doable in Docker, but we don't want to mirror every single functionality of Docker to CapRover. If we do that, CapRover becomes a very hard to maintain project.

For your use case, you can simply change the NodeID of your app post creation. Optionally, you can then SSH into the original node and remove the initial volume.