No description
Find a file
2025-09-14 08:02:35 +00:00
git.heim.ax Initial commit 2025-04-02 13:36:08 +03:00
lab-wondercms.heim.ax wondercms lab 2025-04-03 12:54:59 +03:00
news-ph.heim.ax news-ph env template 2025-04-03 07:46:32 +03:00
portainer Initial commit 2025-04-02 13:36:08 +03:00
traefik socis.ax 2025-04-20 12:24:48 +03:00
uptime.heim.ax gitkeep uptime.heim.ax 2025-04-03 07:55:36 +03:00
www.egard.ax@c9fe7b6531 Adding egard.ax 2025-04-06 16:09:25 +03:00
www.heim.ax@784bcf284f Heimåt web submodule update 2025-04-24 09:52:11 +03:00
www.socis.ax@9264fa0dba Heimat owner 2025-04-20 12:29:35 +03:00
.gitignore uptime-kuma 2025-04-03 07:54:11 +03:00
.gitmodules Heimat owner 2025-04-20 12:29:35 +03:00
docker-compose.yaml Update docker-compose.yaml 2025-09-14 08:02:35 +00:00
README.md Update README.md 2025-09-14 07:56:24 +00:00

Heimåt Cloud Infrastructure

# Install updates
$ apt update
$ apt upgrade
$ apt install git
# Docker - https://docs.docker.com/engine/install/debian/
$ for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do apt-get remove $pkg; done
$ apt-get install ca-certificates curl
$ install -m 0755 -d /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
$ chmod a+r /etc/apt/keyrings/docker.asc
$ echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
$ apt-get update
$ apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Allow non-root binding to privileged ports
$ echo 'net.ipv4.ip_unprivileged_port_start=0' >> /etc/sysctl.conf
$ sysctl --system
# Create passwordless 'app' user and switch to it
$ adduser app
$ passwd -d app
$ usermod -aG docker app
$ su app
$ cd

$ git clone https://git.heim.ax/patrik/infrastructure.git .
$ git submodule update --init --recursive

$ touch traefik/acme.json && chmod 600 traefik/acme.json

$ docker compose up --detach

$ git submodule update --recursive --remote
$ git pull origin main
ssh -i ~/.ssh/id_rsa root@heim.ax
su app
cd

# Pull fresh images
docker image prune --force
docker images | grep -v REPOSITORY | awk '{print $1}' | xargs -L1 docker pull

# Create new & restart old services
docker compose up --detach

# Update workspace
git pull origin main
git submodule update --init --recursive --remote
Service Public access
portainer - Portainer https://37.27.216.217:8000
traefik - Traefik http://37.27.216.217:8001/
git-heim-ax - Forgejo ✔️ https://git.heim.ax/
news-ph-heim-ax - Fusion ✔️ https://news-ph.heim.ax/
uptime-heim-ax - Uptime Kuma ✔️ https://uptime.heim.ax/
www-egard-ax - Nginx ✔️ https://www.egard.ax/
www-heim-ax - Nginx ✔️ https://www.heim.ax/
www-socis-ax - Nginx ✔️ https://www.socis.ax/
lab-wondercms-heim-ax - WonderCMS ✔️ https://lab-wondercms.heim.ax/