lostdock
Cheap deployment to a VPS with Docker Compose
Cheap
Easy to use
Deploy any app
Fast deployment
Scalable
Reliable
Docker Compose
Lightweight
Installation
npm install -g lostdock
Overview
Init a server
Create a new Debian/Ubuntu VPS in your preferred cloud provider. Then init the server:
# After creating a new VPS, login via SSH
lostdock login
# Install Docker Compose and start the firewall.
lostdock server init
Deploying
Once you have a server running, you can run a pre-configured stack from GitHub. For example, let's run our lostdock-traefik reverse proxy stack with auto generated TLS certificates
export TRAEFIK_HOST=traefik.example.com
export TRAEFIK_BASIC_AUTH="$(echo $(htpasswd -nb admin admin) | sed -e s/\\$/\\$\\$/g)"
export LETSENCRYPT_EMAIL=example@example.com
# Start Traefik reverse proxy
lostdock stacks install-from-git \
--url https://github.com/carlosbaraza/lostdock.git \
--path ./packages/lostdock-traefik
We also recommend running the following stacks: lostdock-monitoring (log and metric aggregation and visualization stack) and lostdock-portainer (container management).
Features
lostdock
gives you a nice set of tools to make deploying docker compose
stacks to a VPS easier. Some of the features are:
lostdock server init
: Install Docker and Docker Compose on a fresh VPS serverlostdock stacks install
: Deploy a stack to a serverlostdock stacks install-from-git
: Deploy stack from a GitHub repository including adocker-compose.yml
. Useful to share pre-configured stacks.lostdock stacks
: Manage stack configuration, environment variables, start, stop, restart, etc.- Multiple extremely useful stacks:
- lostdock-traefik (opens in a new tab): Reverse proxy with auto generated TLS certificates
- lostdock-monitoring (opens in a new tab): Log and metric aggregation and visualization stack. Grafana, Loki, Prometheus, cAdvisor, Node Exporter, alertmanager, and more.
- lostdock-portainer (opens in a new tab): Container management. Web UI to manage your Docker environments, stacks & containers with ease.
And a lot more.
Community
Lostdock is an open source project initially developed by @carlosbaraza (opens in a new tab). If you like it, please consider starring it on GitHub (opens in a new tab).
Feel free to join the discussions on GitHub (opens in a new tab)!