Aller au contenu

proxmox2 - Serveur Développement

Vue d'ensemble

Second serveur Proxmox dédié au développement, aux outils de productivité et aux projets expérimentaux.

graph TB
    subgraph proxmox2["proxmox2 - 192.168.1.70"]
        direction TB

        subgraph dev["💻 Développement"]
            VSCode[LXC 125<br/>VSCode Server<br/>10 GB RAM]
            Gitea[LXC 121<br/>Gitea<br/>3000]
            GitSync[LXC 122<br/>Git Mirror]
        end

        subgraph apps["📱 Applications"]
            TGTG[LXC 107<br/>Admin TGTG]
            N8N[LXC 104<br/>n8n<br/>stopped]
        end

        subgraph experimental["🧪 Expérimental"]
            CrewAI[LXC 108<br/>CrewAI<br/>stopped]
            Bolt[LXC 109<br/>Bolt<br/>stopped]
            Browser[LXC 131<br/>Browser<br/>stopped]
        end
    end

Spécifications matérielles

Ressource Valeur
Modèle À compléter
CPU À compléter
RAM ~8 GB utilisés
Stockage local-lvm + ssd-storage + pve2

Informations système

Propriété Valeur
IP 192.168.1.70
Version PVE pve-manager/9.1.1
Kernel 6.17.2-1-pve
OS Debian 13 (Trixie)

Accès

Interface Web

https://192.168.1.70:8006

SSH

ssh root@192.168.1.70

Services hébergés

Développement (actifs)

VMID Nom Type RAM Port Description
125 vscode-proxmox LXC 10 GB - VSCode Server - Environnement de développement principal
121 git-proxmox LXC 1 GB 3000 Gitea - Hébergement Git self-hosted
122 gitsync-proxmox LXC 2 GB - Git Mirror - Synchronisation repos GitHub ↔ Gitea

Applications (actives)

VMID Nom Type RAM Port Description
107 admin-tgtg-proxmox LXC 2 GB - Administration Too Good To Go

Arrêtés (disponibles)

VMID Nom RAM Description
104 n8n-proxmox 2 GB Automatisation n8n (migré vers OVH)
108 crewai-proxmox 2 GB Expérimentation CrewAI
109 bolt-proxmox 2 GB Bolt.new local
117 bnboost-proxmox 2 GB Projet BnBoost
120 homeexchange-docker-proxmox 4 GB Monitoring HomeExchange
126 doctolib-reviews-api 1 GB API reviews Doctolib
131 browser-proxmox 4 GB Browser headless
134 atp-platform 4 GB Plateforme ATP

Ports exposés

Port Service LXC Protocole
3000 Gitea LXC 121 TCP
8006 Proxmox Web - TCP

Stockage

Pool Type Usage
local-lvm LVM thin OS et données LXC
ssd-storage SSD Performance
pve2 LVM Stockage additionnel

Services critiques - Détails

VSCode Server (LXC 125)

Environnement de développement principal : - IP interne : 192.168.1.175 - RAM allouée : 10 GB (le plus gros LXC) - Usage : Développement, Claude Code, scripts

C'est l'environnement depuis lequel cette documentation est éditée.

# Accès direct
ssh root@192.168.1.175

# Ou via Proxmox
pct enter 125

Projets hébergés : - /mnt/GIT/domotique - Cette documentation - /mnt/GIT/claude-helpers - Outils Claude - /mnt/GIT/m3u-editor - Éditeur M3U

Gitea (LXC 121)

Hébergement Git self-hosted : - URL : http://192.168.1.70:3000 - Alternative légère à GitHub/GitLab - Miroirs des repos importants

# Accès
pct enter 121

# Logs
journalctl -u gitea -f

Git Mirror (LXC 122)

Synchronisation bidirectionnelle : - GitHub → Gitea (backup) - Gitea → GitHub (push) - Automatisé via cron

# Vérifier la synchro
pct enter 122
crontab -l

Commandes utiles

Gestion des conteneurs

# État de tous les LXC
pvesh get /nodes/proxmox2/lxc --output-format json-pretty

# Démarrer un LXC arrêté (pour test)
pct start 108  # CrewAI par exemple

# Snapshot avant modification
pct snapshot 125 "avant-modif"

Développement

# Connexion VSCode
ssh -L 8080:localhost:8080 root@192.168.1.175

# Logs conteneur Docker dans VSCode LXC
docker logs <container> -f

Usage principal

Ce serveur est dédié au développement et aux expérimentations :

  1. VSCode Server - IDE principal pour tout le développement
  2. Gitea - Backup et miroir des repos
  3. LXC expérimentaux - Tests de nouvelles technologies (IA, automation)

Workflow typique

flowchart LR
    Dev[VSCode<br/>LXC 125] --> Gitea[Gitea<br/>LXC 121]
    Gitea --> Mirror[Git Mirror<br/>LXC 122]
    Mirror --> GitHub[GitHub<br/>Cloud]

Maintenance

Ce serveur peut être arrêté

Contrairement à proxmox (principal), ce serveur peut être arrêté sans impact sur la domotique : - Home Assistant continue de fonctionner - Le réseau (DNS/DHCP) reste opérationnel - Les caméras continuent d'enregistrer

Backup recommandé

# Backup VSCode (important - contient les projets)
vzdump 125 --storage pbs-backup --mode snapshot --compress zstd

# Backup Gitea (repos)
vzdump 121 --storage pbs-backup --mode snapshot --compress zstd

Notes

  • RAM intensive : VSCode (10 GB) consomme beaucoup
  • LXC arrêtés : Peuvent être démarrés à la demande pour tests
  • Pas de services critiques : Peut être redémarré librement
  • Expérimentation : Idéal pour tester de nouveaux services avant production