Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions apps/website/public/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

# Detect version from environment variable or detect latest stable from GitHub
# Docker version to install and maintain
DOCKER_VERSION="28.5.0"

# Detect version from environment variable or default 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=latest && 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)
Expand Down Expand Up @@ -127,7 +130,11 @@ install_dokploy() {
if command_exists docker; then
echo "Docker already installed"
else
curl -sSL https://get.docker.com | sh -s -- --version 28.5.0
curl -sSL https://get.docker.com | sh -s -- --version $DOCKER_VERSION
# Hold docker packages to prevent unintended upgrades (apt-based distros only)
if command_exists apt-mark; then
apt-mark hold docker-ce docker-ce-cli docker-ce-rootless-extras
fi
fi

# Check if running in Proxmox LXC container and set endpoint mode
Expand Down Expand Up @@ -352,9 +359,9 @@ update_dokploy() {
# Detect version tag
VERSION_TAG=$(detect_version)
DOCKER_IMAGE="dokploy/dokploy:${VERSION_TAG}"

echo "Updating Dokploy to version: ${VERSION_TAG}"

# Pull the image
docker pull $DOCKER_IMAGE

Expand Down
Loading