Compare commits
4 commits
ac7c6366cb
...
a14bb9d178
Author | SHA1 | Date | |
---|---|---|---|
|
a14bb9d178 | ||
dfe02d4fc3 | |||
863287347d | |||
c3b01de456 |
4 changed files with 57 additions and 6 deletions
|
@ -7,7 +7,7 @@ cli:
|
||||||
plugins:
|
plugins:
|
||||||
sources:
|
sources:
|
||||||
- id: trunk
|
- id: trunk
|
||||||
ref: v1.6.0
|
ref: v1.6.1
|
||||||
uri: https://github.com/trunk-io/plugins
|
uri: https://github.com/trunk-io/plugins
|
||||||
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
|
||||||
runtimes:
|
runtimes:
|
||||||
|
@ -24,13 +24,13 @@ lint:
|
||||||
- checkov
|
- checkov
|
||||||
enabled:
|
enabled:
|
||||||
- hadolint@2.12.0
|
- hadolint@2.12.0
|
||||||
- tflint@0.51.1
|
- tflint@0.52.0
|
||||||
- gitleaks@8.18.4
|
- gitleaks@8.18.4
|
||||||
- markdownlint@0.41.0
|
- markdownlint@0.41.0
|
||||||
- taplo@0.8.1
|
- taplo@0.9.2
|
||||||
- actionlint@1.7.1
|
- actionlint@1.7.1
|
||||||
- git-diff-check
|
- git-diff-check
|
||||||
- prettier@3.3.2
|
- prettier@3.3.3
|
||||||
- yamllint@1.35.1
|
- yamllint@1.35.1
|
||||||
definitions:
|
definitions:
|
||||||
- name: markdownlint
|
- name: markdownlint
|
||||||
|
@ -49,12 +49,12 @@ tools:
|
||||||
- gh@2.49.2
|
- gh@2.49.2
|
||||||
- jq@jq-1.7.1
|
- jq@jq-1.7.1
|
||||||
- yq@4.44.1
|
- yq@4.44.1
|
||||||
- awscli@1.33.17
|
- awscli@1.33.31
|
||||||
- action-validator@0.6.0
|
- action-validator@0.6.0
|
||||||
- act@0.2.63
|
- act@0.2.63
|
||||||
- shellcheck@0.10.0
|
- shellcheck@0.10.0
|
||||||
- hadolint@2.12.0
|
- hadolint@2.12.0
|
||||||
- tofu@1.7.2
|
- tofu@1.7.2
|
||||||
- trunk-toolbox@0.3.2
|
- trunk-toolbox@0.3.2
|
||||||
- tflint@0.51.1
|
- tflint@0.52.0
|
||||||
- terraform@1.9.0
|
- terraform@1.9.0
|
||||||
|
|
1
nginx.tf
1
nginx.tf
|
@ -18,6 +18,7 @@ module "nginx" {
|
||||||
module.vigil_nginx_config.files,
|
module.vigil_nginx_config.files,
|
||||||
module.videobucket_nginx_config.files,
|
module.videobucket_nginx_config.files,
|
||||||
//module.netbox_nginx_config.files,
|
//module.netbox_nginx_config.files,
|
||||||
|
module.orcaslicer_nginx_config.files,
|
||||||
)
|
)
|
||||||
networks = [
|
networks = [
|
||||||
docker_network.loadbalancer,
|
docker_network.loadbalancer,
|
||||||
|
|
50
orca-slicer.tf
Normal file
50
orca-slicer.tf
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
data "docker_registry_image" "orcaslicer" {
|
||||||
|
name = "lscr.io/linuxserver/orcaslicer:latest"
|
||||||
|
}
|
||||||
|
resource "docker_volume" "orcaslicer" {
|
||||||
|
name = "orcaslicer_config"
|
||||||
|
}
|
||||||
|
resource "docker_service" "orcaslicer" {
|
||||||
|
name = "orcaslicer"
|
||||||
|
task_spec {
|
||||||
|
container_spec {
|
||||||
|
image = "${data.docker_registry_image.orcaslicer.name}@${data.docker_registry_image.orcaslicer.sha256_digest}"
|
||||||
|
env = {
|
||||||
|
PUID = 1000
|
||||||
|
PGID = 1000
|
||||||
|
TZ = "Europe/Amsterdam"
|
||||||
|
}
|
||||||
|
mounts {
|
||||||
|
target = "/config"
|
||||||
|
type = "volume"
|
||||||
|
source = docker_volume.orcaslicer.name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
networks_advanced {
|
||||||
|
name = docker_network.loadbalancer.id
|
||||||
|
}
|
||||||
|
restart_policy {
|
||||||
|
condition = "any"
|
||||||
|
delay = "0s"
|
||||||
|
window = "0s"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
endpoint_spec {
|
||||||
|
ports {
|
||||||
|
target_port = 3000
|
||||||
|
published_port = 3000
|
||||||
|
publish_mode = "ingress"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
module "orcaslicer_nginx_config" {
|
||||||
|
# tflint-ignore: terraform_module_pinned_source
|
||||||
|
source = "git::https://code.techinc.nl/grey/terraform-nginx.git//nginx-site-available"
|
||||||
|
hostname = "orca.california.ti"
|
||||||
|
//certificate = acme_certificate.ooo_grey["s3"]
|
||||||
|
service_name = docker_service.orcaslicer.name
|
||||||
|
upstream_host = "${docker_service.orcaslicer.name}:3000"
|
||||||
|
config_prefix = "nginx"
|
||||||
|
allow_non_ssl = true
|
||||||
|
allow_ssl = false
|
||||||
|
}
|
Loading…
Reference in a new issue