21 lines
672 B
Markdown
21 lines
672 B
Markdown
# Installation
|
|
|
|
Run `terraform init`
|
|
|
|
# Instructions
|
|
|
|
Terraform cannot create a qnet network, so we do it manually and then import into Terraform.
|
|
|
|
```
|
|
dockerx.bat network create -d qnet --ipam-driver=qnet --ipam-opt=iface=eth0 --subnet=192.168.2.0/24 --gateway=192.168.2.1 terraform-static-eth1-shared
|
|
```
|
|
|
|
```
|
|
terraform import docker_network.bridge f9cf6469837bece2c688b65787869af240fcffa95d9d5d3a71a0c4da119e5edc
|
|
```
|
|
|
|
## Run considerations
|
|
If updating remotely using wireguard, note that it is also run on docker.
|
|
|
|
So it will cause the tunnel to disconnect. Not sure how to handle this, yet.
|
|
Probably not run terraform apply locally and instead run it in a CI solution? |