Finally get proxmox/microos/docker to work

This commit is contained in:
Marc Fokkert
2025-04-20 15:29:45 +02:00
parent a6871c214b
commit 87f8cc3c10
16 changed files with 214 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
version = "3.3.0"
}
}
}
provider "docker" {
host = "tcp://127.0.0.1:3000"
cert_path = pathexpand(".docker")
registry_auth {
address = "gitea.rescla.me"
username = "rescla"
password = "9c84612c4b053e2ec663cde03da730b6a01304e8"
}
}
resource "docker_network" "bridge" {
name = "bridge"
}
resource "docker_network" "container-public" {
name = "container-public"
ipam_config {
subnet = "192.168.3.0/24"
gateway = "192.168.3.1"
ip_range = "192.168.3.128/25"
}
}