Skip to content
Open
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
31 changes: 17 additions & 14 deletions tutorials/deploy-static-site-offen-analytics/01.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
path: "/tutorials/deploy-static-site-offen-analytics"
slug: "deploy-static-site-offen-analytics"
date: "2020-10-08"
title: "How to deploy a static website with analytics using Offen and Caddy on Ubuntu 24"
title: "How to deploy a static website with analytics using Offen and Caddy on Ubuntu 26"
short_description: "This tutorial walks you through the steps needed to deploy a static website with self-hosted analytics on a VPS, using Offen Analytics and the Caddy webserver."
tags: ["Docker", "Analytics", "Website"]
author: "Frederik Ring"
Expand All @@ -26,7 +26,7 @@

---

This guide will walk you through the steps needed for deploying a static website alongside an [**Offen**][offen] analytics instance to a VPS (Virtual Private Server). The tutorial assumes you are using Ubuntu 24, other distributions will work too though with some differences.
This guide will walk you through the steps needed for deploying a static website alongside an [**Offen**][offen] analytics instance to a VPS (Virtual Private Server). The tutorial assumes you are using Ubuntu 26, other distributions will work too though with some differences.

The commands in this tutorial assume you are logged in as a non-root `sudo` user. If you are logged in as root instead, you do not have to use `sudo` in front of certain commands at all.

Expand Down Expand Up @@ -60,30 +60,33 @@

```console
# Add Docker's official GPG key:
$ sudo apt-get update
$ sudo apt-get install ca-certificates curl
$ sudo apt update
$ sudo apt install ca-certificates curl
$ sudo install -m 0755 -d /etc/apt/keyrings
$ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
$ sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ sudo apt-get update
$ sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
$ sudo apt update
$ sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# The next step is not needed if you are logged in as root
# sudo usermod -aG docker $USER
$ sudo usermod -aG docker $USER

# you can now use docker version to check whether your install was successful
# depending on when you install, this might print a newer version
$ docker version --format "{{ .Client.Version }}"
27.3.1
29.8.2
$ docker compose version
Docker Compose version v2.29.7
Docker Compose version v5.6.0
$
```

Expand Down Expand Up @@ -448,7 +451,7 @@

The official documentation site for Offen can be found at <https://docs.offen.dev>, Documentation for Caddy is available at <https://caddyserver.com/>.

##### License: MIT

Check failure on line 454 in tutorials/deploy-static-site-offen-analytics/01.en.md

View workflow job for this annotation

GitHub Actions / Markdown lint (advisory)

Heading levels should only increment by one level at a time

tutorials/deploy-static-site-offen-analytics/01.en.md:454 MD001/heading-increment Heading levels should only increment by one level at a time [Expected: h3; Actual: h5] https://github.com/DavidAnson/markdownlint/blob/v0.41.1/doc/md001.md

<!--

Expand Down
Loading