caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 40 forks source link

How to make a docker run #100

Closed nixilb closed 3 years ago

nixilb commented 3 years ago

Hello,

I want to use CapRover to install this nodeJS app: I usually use

docker run -it -p 1990:1880 --name mybot 6v099815.gra5.container-registry.ovh.net/nis/nodered-git-login:v4

An idea?

githubsaturn commented 3 years ago

Note: if your docker registry is private, make sure you first connect your docker registry:

nixilb commented 3 years ago

This docker images contains an IBM NodeRED. Do you think I will be able to access its API entry point using https?

githubsaturn commented 3 years ago

As long as it exposes an HTTP port on 1880, yes.

nixilb commented 3 years ago

Were do I put parameters of the docker run command? Typically -p -v -name -alwaysrestart ... etc

githubsaturn commented 3 years ago

CapRover uses docker swarm. You don't deploy containers, you deploy services.

Only a handful of flags are available on the UI. Env vars, ports and image.

Always restart is not needed. Docker swarm automatically does that.

nixilb commented 3 years ago

Now it works perfectly. I now have an API written in nodeRED that I can access using https in a much simpler way than what is described in the NodeRED documentation. Also awesome support.