Оф страница с инструкцией по установке docker Docker Doks
sudo apt-get install apt-transport-https ca-certificates curl \
gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose
sudo usermod -aG docker $USER
На сегодняшний день самая свежая версия 2.15.1. Проверить наличие новой версии можно тут Docker Compose GitHub
sudo curl -L "https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
POSTGRES_USER=zabbix
POSTGRES_PASSWORD=zabbix
POSTGRES_DB=zabbixNew
sudo apt install wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
wg0.conf
[Interface]
PrivateKey = server privatekey
Address = 10.0.50.1/24
ListenPort = 51820
[Peer]
PublicKey = client pubkey
AllowedIPs = 10.0.50.2/32
sudo systemctl enable wg-quick@wg0.service --now
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
wg0.conf
[Interface]
Address = 10.0.50.2/32
PrivateKey = client privatekey
[Peer]
PublicKey = server pubkey
Endpoint = <server-public-ip>:51820
AllowedIPs = 10.0.50.1/32
PersistentKeepalive = 5
sudo systemctl enable wg-quick@wg0.service --now
sudo docker-compose -f docker-compose-server-amd64.yaml up -d
Если хотите обнулить данные БД и накатить сервер заново но с чистой конфигурацией то удалить папку /var/lib/postgresql/data
sudo rm -rf /var/lib/postgresql/data
sudo docker-compose -f docker-compose-server-amd64.yaml down
sudo docker-compose -f docker-compose-proxy-amd64.yaml up -d
sudo docker-compose -f docker-compose-proxy-amd64.yaml down