Forgejo

Appearance

Make haypack comfortable for you.

Theme
Font
Contrast
Text size
Layout

Saved in this browser. No cookies.

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_keys of 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.