Terminal recording · Getting started · 5 min · Beginner
Your first app in a container
Create Traefik as an LXC container on Proxmox with one command and log in.
Recording follows – the steps below work without it.
Before you start
- a Proxmox VE host (8 or newer) with internet access and a root shell on it
- your SSH key in
/root/.ssh/authorized_keysof the host – haypack copies it into the guest
1. Run the one-liner
On the Proxmox host, as root:
bash -c "$(curl -fsSL https://iac.heyer.systems/traefik/ct.sh)"
The dialog asks default or advanced. Choose default: the next free ID, DHCP and the resources the app needs.
2. Watch it build
The script creates the container, starts it and runs the playbook inside the guest: packages, configuration, firewall, services. At the end it checks that Traefik answers.
3. Log in
The last lines show the address:
Done: Traefik (LXC 105)
IP 192.168.40.20
SSH ssh root@192.168.40.20
Access Dashboard: http://192.168.40.20:8080/
ssh root@192.168.40.20
Without network, pct enter 105 on the host gets you in as well.
What you have now
A Debian 13 container in its target state, a firewall that only opens the ports of the app, and
update for the future. Next: add a module.
Die Aufzeichnung folgt – die Schritte darunter funktionieren auch ohne sie.
Vor dem Start
- Proxmox VE ab Version 8 mit Internetzugang und root-Shell.
- Öffentlicher SSH-Schlüssel in
/root/.ssh/authorized_keysdes Hosts; haypack übernimmt ihn in den Gast.
1. Einzeiler ausführen
Auf dem Proxmox-Host als root:
bash -c "$(curl -fsSL https://iac.heyer.systems/traefik/ct.sh)"
Im Dialog default wählen: nächste freie ID, DHCP und die von der App vorgesehenen Ressourcen. Mit advanced lassen sich Werte anpassen.
2. Bereitstellung verfolgen
Das Skript erstellt und startet den Container. Im Gast richtet das Playbook Pakete, Konfiguration, Firewall und Dienste ein. Abschließend wird geprüft, ob Traefik antwortet.
3. Anmelden
Die letzten Zeilen zeigen die Adresse:
Done: Traefik (LXC 105)
IP 192.168.40.20
SSH ssh root@192.168.40.20
Access Dashboard: http://192.168.40.20:8080/
ssh root@192.168.40.20
Ohne Netzwerkzugang auf dem Host pct enter 105 verwenden.
Das Ergebnis
Ein Debian-13-Container im Zielzustand, eine Firewall mit den benötigten App-Ports und update für die weitere Wartung. Als Nächstes: ein Modul hinzufügen.