Bare VPS
On Debian or Ubuntu, with Postgres and S3-compatible storage somewhere you can reach. It checks out the newest release (releases):
# Node 24 and pnpmcurl -fsSL https://deb.nodesource.com/setup_24.x | sudo bash -sudo apt-get install -y nodejs ffmpegsudo corepack enable
sudo useradd --system --create-home --home-dir /opt/artbucket artbucketsudo -u artbucket git clone https://github.com/pwnera/artbucket.git /opt/artbucket/appcd /opt/artbucket/appsudo -u artbucket git checkout v2.8.0sudo -u artbucket pnpm install --frozen-lockfilesudo -u artbucket cp .env.example .env # fill it insudo -u artbucket pnpm buildA systemd unit:
[Unit]Description=ArtbucketAfter=network.target
[Service]User=artbucketWorkingDirectory=/opt/artbucket/appEnvironmentFile=/opt/artbucket/app/.envEnvironment=NODE_ENV=production NEXT_TELEMETRY_DISABLED=1ExecStart=/usr/bin/pnpm startRestart=always
[Install]WantedBy=multi-user.targetsudo systemctl enable --now artbucketAnd Caddy in front, for TLS:
assets.example.com { reverse_proxy localhost:3000}The app migrates its database when it starts. To upgrade, check out the new
tag, pnpm install --frozen-lockfile, pnpm build, and restart the service.