Stack management basics
lostdock stacks
Usage
$ lostdock stacks <command>
Manage your stacks on the server
Commands:
create ยทยทยทยทยทยทยทยทยทยทยทยทยท Create the basic configuration files for a stack (.lostdockrc.json,
docker-compose.yml, .env). Nothing will be deployed to the server.
pull ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Pull all the remote stack files to the local stack folder. This will
overwrite any local changes.
push ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Push the stack configuration to the server. All the files in the stack
directory will be uploaded to the server. It is recommended to have a
folder with the minimal data needed to run the stack: docker-compose.yml,
.env, etc.
env ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Manage your stack .env files on the server
install ยทยทยทยทยทยทยทยทยทยทยทยท Install the current folder stack in your server
install-from-git ยทยทยท Clone the repository and install the stack
up ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Run `docker compose up` for the stack in the server
down ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Run `docker compose down` for the stack in the server
compose ยทยทยทยทยทยทยทยทยทยทยทยท Run `docker compose` for the stack in the server. You can specify any
docker compose command after this command.
Options:
--help, -h ยทยทยทยทยทยทยทยทยท Show help
lostdock stacks up
Usage
$ lostdock stacks up
Run `docker compose up` for the stack in the server
Options:
--stack, -s ยทยทยทยทยทยทยทยท stack name (e.g. example-stack-production)
--help, -h ยทยทยทยทยทยทยทยทยท Show help
lostdock stacks down
Usage
$ lostdock stacks down
Run `docker compose down` for the stack in the server
Options:
--stack, -s ยทยทยทยทยทยทยทยท stack name (e.g. example-stack-production)
--help, -h ยทยทยทยทยทยทยทยทยท Show help
lostdock stacks push
Usage
$ lostdock stacks push
Push the stack configuration to the server. All the files in the stack directory will be uploaded to the server. It is recommended to have a folder with the minimal data needed to run the stack: docker-compose.yml, .env, etc.
Options:
--stack, -s ยทยทยทยทยทยทยทยท stack name (e.g. example-stack-production)
--help, -h ยทยทยทยทยทยทยทยทยท Show help
lostdock stacks pull
Usage
$ lostdock stacks pull
Pull all the remote stack files to the local stack folder. This will overwrite any local changes.
Options:
--stack, -s ยทยทยทยทยทยทยทยท stack name (e.g. example-stack-production)
--help, -h ยทยทยทยทยทยทยทยทยท Show help
lostdock stacks env
Usage
$ lostdock stacks env <command>
Manage your stack .env files on the server
Commands:
pull ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Download the current .env file
push ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Upload the local .env file
view ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท View the current remote .env file
set ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท Set an environment variable in your remote stack. The stack will be
restarted.
unset ยทยทยทยทยทยทยทยทยทยทยทยทยทยท Unset an environment variable in your remote stack. The stack will be
restarted.
Options:
--help, -h ยทยทยทยทยทยทยทยทยท Show help