lasthourcloud/notes.md
2024-07-25 13:07:40 -07:00

43 lines
1.9 KiB
Markdown

sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate
sudo docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml down
docker run --pull always -v /data/coolify/source:/data/coolify/source -v /var/run/docker.sock:/var/run/docker.sock --rm ghcr.io/coollabsio/coolify-helper bash -c "LATEST_IMAGE=${1:-} docker compose --env-file /data/coolify/source/.env -f /data/coolify/source/docker-compose.yml -f /data/coolify/source/docker-compose.prod.yml up -d --pull always --remove-orphans --force-recreate"
# Check the current value
grep PermitRootLogin /etc/ssh/sshd_config
# If the value is not `yes` or `without-password` or `prohibit-password`, change it and make sure it is not commented out.
# If it is commented out, remove the `#` character at the beginning of the line.
sudo vi /etc/ssh/sshd_config
# You can exit the editor by pressing `Esc` and then `:wq` and then `Enter` keys - thank me later.
# Restart the SSH service
# Ubuntu/Debian/CentOS/RHEL/Arch Linux/SLES/openSUSE
sudo systemctl restart sshd
# Alpine Linux
sudo rc-service sshd restart
Clean up:
Remove local key ~/.ssh/authorized_keys
sudo rm -rf /data/coolify &&
sudo docker stop $(sudo docker ps -q) &&
sudo docker rm $(sudo docker ps -a -q) &&
sudo docker rmi $(sudo docker images -q) &&
sudo docker volume rm $(sudo docker volume ls -q)
Install sequence:
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config &&
sudo systemctl restart sshd &&
git clone https://githaven.org/Shiloh/lasthourcloud.git
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh