Deploys Sonatype Nexus Repository Manager with: - Traefik ingress with TLS (production certresolver) - Persistent storage at /opt/nexus-data - Health checks and memory limits
34 lines
654 B
HCL
34 lines
654 B
HCL
# Description: This file is used to configure the Docker and Vault providers.
|
|
terraform {
|
|
required_providers {
|
|
docker = {
|
|
source = "abh80/docker"
|
|
version = "1.0.1"
|
|
}
|
|
|
|
vault = {
|
|
source = "hashicorp/vault"
|
|
version = "5.5.0"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Configure the Docker provider
|
|
provider "docker" {
|
|
host = "tcp://192.168.2.170:2376"
|
|
|
|
cert_path = pathexpand("~/.docker")
|
|
}
|
|
|
|
# Configure the Vault provider
|
|
provider "vault" {
|
|
address = "https://wbyc-srv-docker01.bsdserver.lan:8200"
|
|
auth_login {
|
|
path = "auth/approle/login"
|
|
parameters = {
|
|
role_id = var.role_id
|
|
secret_id = var.secret_id
|
|
}
|
|
}
|
|
}
|