nobbic ACTION [ARG...]
Nobbic offers an easy way to install and run NodeBB with one of PostgreSQL, MongoDB or Redis as a main database, or one of the first two as a main and Redis as a session database.
It also allows to create backups and restore from those backups.
Most of the actions require specifying APP_NAME as their first argument. APP_NAME is simply a name of your chosing for the NodeBB installation, e.g., "my-new-forum".
Following "actions" are implemented so far:
-
list
Lists pods created with nobbic.
-
build
APP_NAMEBuilds pod with containers using options passed through environment variables.
-
start
APP_NAMEStarts pod with its containers, building it first if it does not exist yet.
-
info
APP_NAMEShows information about pod and its containers.
-
bash
APP_NAMESwitches to the bash shell inside NodeBB's container.
-
exec
APP_NAME COMMAND [ARG...]Executes single command inside NodeBB's container's shell.
-
backup
APP_NAME [BACKUPS_DIR] [BACKUP_NAME]Creates backup directory with data from pod's containers.
-
restore
APP_NAME [BACKUPS_DIR] [BACKUP_NAME]Restores pod and containers with data from backup.
-
upgrade
APP_NAMECreates backup, recreates pod using options from environment variables.
-
install
APP_NAMECreates system's (OpenRC or SystemD) service file and tries to install it.
-
tunnel
APP_NAMECreates "tunnel" between port 80 and port used by NodeBB's pod.
-
stop
APP_NAMEStops the pod and its containers.
-
remove
APP_NAMERemoves pod, its containers and their data.
-
cleanup
["nodebb"|"node"|"repo"]Removes pods (if any are still existing) and container images for NodeBB or both NodeBB and Node.js. Or "repo" volumes with NodeBB repository and other data shared between pods.