Docker Configuration - SomethingGeneric/sparkle.local GitHub Wiki

IP Configuration

image

Hostname Configuration

image

Docker Setup

I installed docker by following the documentation's guide for installing on Ubuntu with APT repository

The tl;dr is

# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get 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 apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

And then, finally, so that the user doesn't have to sudo docker, you can optionally also sudo usermod -aG docker <your_users_login_name>

Docker Setup (via Ansible)

A playbook version of the above steps can be found here, which, when run from mgmt02, can install docker onto docker-sparkle (or other hosts if they're in an inventory file and you change the hosts: block at the top of the playbook.

You can see an example of the playbook running below:

image

Wiki.js Setup

To set up Wiki.js (a wiki software with similar usage to MediaWiki, but easier to manage), I adapted a compose.yaml which you can find here from their official example that you can find here.

I cloned it with git clone, then cd sparkle.local/docker && docker compose up -d

image

Test Wiki Page

image