docs: update manual installation instructions and usage examples

- Added commands for using specific Dokploy versions with curl and bash, enhancing clarity on installation options.
- Updated the install.sh script comments to reflect new usage instructions for setting the DOKPLOY_VERSION environment variable.
This commit is contained in:
Mauricio Siu
2025-12-07 15:02:56 -06:00
parent 8cd50f2a62
commit 7f1966915f
2 changed files with 21 additions and 3 deletions

View File

@@ -292,3 +292,17 @@ To upgrade Dokploy manually, you can use the following command:
curl -sSL https://dokploy.com/install.sh | sh -s update
```
To use a specific version, you can use the following command:
```bash
export DOKPLOY_VERSION=canary && curl -sSL https://dokploy.com/install.sh | sh
export DOKPLOY_VERSION=feature && curl -sSL https://dokploy.com/install.sh | sh
curl -sSL https://dokploy.com/install.sh | sh (defaults to latest)
```
Alternatively, you can use `bash -s`:
```bash
DOKPLOY_VERSION=canary bash -s < <(curl -sSL https://dokploy.com/install.sh)
DOKPLOY_VERSION=feature bash -s < <(curl -sSL https://dokploy.com/install.sh)
```

View File

@@ -1,9 +1,13 @@
#!/bin/bash
# Detect version from environment variable or default to latest
# Usage: DOKPLOY_VERSION=canary bash install.sh
# Usage: DOKPLOY_VERSION=feature bash install.sh
# Usage: bash install.sh (defaults to latest)
# Usage with curl (export first): export DOKPLOY_VERSION=canary && curl -sSL https://dokploy.com/install.sh | sh
# Usage with curl (export first): export DOKPLOY_VERSION=feature && curl -sSL https://dokploy.com/install.sh | sh
# Usage with curl (bash -s): DOKPLOY_VERSION=canary bash -s < <(curl -sSL https://dokploy.com/install.sh)
# Usage with curl (default): curl -sSL https://dokploy.com/install.sh | sh (defaults to latest)
# Usage with bash: DOKPLOY_VERSION=canary bash install.sh
# Usage with bash: DOKPLOY_VERSION=feature bash install.sh
# Usage with bash: bash install.sh (defaults to latest)
detect_version() {
local version="${DOKPLOY_VERSION:-latest}"
echo "$version"