You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
921 B

# Referred to https://github.com/pi-hole/docker-pi-hole#quick-start
# for config.
resource "docker_container" "gitea" {
name = "gitea"
image = docker_image.gitea.latest
volumes {
host_path = "/data/gitea/"
container_path = "/data/"
}
upload {
content = data.template_file.gitea.rendered
file = "/data/gitea/conf/app.ini"
}
# https://tools.ietf.org/html/rfc5966
# mentions to support TCP for DNS.
ports {
internal = 3000
external = 4000
ip = var.ips["tailscale_floyd"]
protocol = "tcp"
}
# DNS on UDP
ports {
internal = 22
external = 4222
ip = var.ips["tailscale_floyd"]
protocol = "tcp"
}
networks_advanced {
name = docker_network.gitea.name
}
networks_advanced {
name = var.caddy_network_public
}
restart = "unless-stopped"
destroy_grace_seconds = 30
must_run = true
}