New Proxmox / Docker Server Deployment guide

Deployment Summary

Here, we will document the general steps to deploy a Proxmox / Docker setup.

nano /etc/apt/sources.list.d/pve-enterprise.list

Comment out the enterprise entry with # and save

/etc/apt/soruces.list.d/ceph.list

Comment out the entry here as well.

nano /etc/apt/sources.list

Check one of my running servers to see what it has, but my newer one has this

deb http://ftp.debian.org/debian bookworm main contrib
deb http://ftp.debian.org/debian bookworm-updates main contrib

# Proxmox VE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription

# security updates
deb http://security.debian.org/debian-security bookworm-security main contrib

 

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
apt update && apt upgrade
Possibly important, maybe not

This below command- I'm not sure it makes sense, so I wouldn't run it, but Allyn gave it to me so it may be necessary. I'm confused because it says apt-get install when we never use apt-get.

apt update && apt upgrade -y && reboot apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
zfs create -o mountpoint=/var/lib/docker rpool/docker
zfs create -o mountpoint=/config rpool/config
mkdir /etc/systemd/system/docker.service.d
nano /etc/systemd/system/docker.service.d/storage-driver.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --storage-driver=zfs -H fd://
apt update && apt install docker-ce docker-ce-cli containerd.io -y
docker info | grep Storage

Installing Portainer

zfs create rpool/config/portainer
docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /config/portainer:/data portainer/portainer-ce:latest

Installing Portainer App Templates

https://raw.githubusercontent.com/ntv-one/portainer/main/template.json

https://raw.githubusercontent.com/portainer/templates/master/templates-2.0.json - this was mine idk


Revision #7
Created 31 August 2023 23:45:42 by Fifthdread
Updated 25 July 2024 15:06:33 by Fifthdread