Clone
1
Setup inicial
Rafa edited this page 2026-06-28 15:05:53 -04:00

Setup inicial del servidor (2026-06-28)

1. Instalación del SO

Servidor recibido en Rescue System de Hetzner. Instalado Ubuntu 24.04 vía installimage:

DRIVE1 /dev/nvme0n1
DRIVE2 /dev/nvme1n1
SWRAID 1
SWRAIDLEVEL 1
HOSTNAME srv1
PART swap swap 8G
PART /boot ext3 1G
PART / ext4 all
IMAGE Ubuntu-2404-noble-amd64-base.tar.zst

2. Configuración base

apt-get install curl git ufw fail2ban unattended-upgrades
  • UFW: puertos 22, 80, 443
  • fail2ban: activo por defecto
  • Usuario: rafa con sudo sin password, clave SSH claude-code@feadulta

3. Docker CE

Instalado desde repositorio oficial de Docker:

  • Docker 29.6.1
  • Docker Compose v5.2.0

4. Coolify

curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

5. Gitea

Desplegado desde Coolify → New Resource → Service → Gitea with PostgreSQL.

  • Dominio: https://gitea.feadulta.com:3000
  • SSH clone: puerto 22222
  • Base de datos: PostgreSQL 16

Nota: al configurar el dominio en Coolify, usar siempre https:// para que Traefik genere el router TLS correcto.