File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,5 +73,4 @@ locals {
7373 ],
7474 ]
7575 }
76-
7776}
Original file line number Diff line number Diff line change 88 docker_compose_yaml = templatefile (" ${ path . module } /templates/docker-compose.yaml.tpl" , {
99 dbx_proxy_image_version = var.dbx_proxy_image_version
1010 dbx_proxy_health_port = var.dbx_proxy_health_port
11+ dbx_proxy_listener = var.dbx_proxy_listener
1112 })
1213}
Original file line number Diff line number Diff line change @@ -6,10 +6,15 @@ services:
66 - NET_BIND_SERVICE
77 environment:
88 - DBX_PROXY_HEALTH_PORT=${ dbx_proxy_health_port}
9+ ports:
10+ - "${ dbx_proxy_health_port} :${ dbx_proxy_health_port} "
11+ %{ for listener in dbx_proxy_listener ~}
12+ - "${ listener.port} :${ listener.port} "
13+ %{ endfor ~}
914 volumes:
1015 - /dbx-proxy/conf:/dbx-proxy/conf:rw
1116 - dbx-proxy-run:/dbx-proxy/run
12- network_mode: "host"
17+
1318 restart: unless-stopped
1419
1520volumes:
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ services:
77 working_dir : /tmp/common
88 volumes :
99 - ../../terraform/common:/workspace/common:ro
10- - ./render-config/terraform .tfvars:/workspace/terraform .tfvars:ro
10+ - ./render-config/.tfvars:/workspace/.tfvars:ro
1111 - conf:/out
1212 entrypoint :
1313 - /bin/sh
@@ -18,7 +18,7 @@ services:
1818 cp -R /workspace/common /tmp/common
1919 cd /tmp/common
2020 terraform init -backend=false -input=false
21- terraform plan -refresh=false -input=false -var-file=/workspace/terraform .tfvars -out=/tmp/plan.tfplan
21+ terraform plan -refresh=false -input=false -var-file=/workspace/.tfvars -out=/tmp/plan.tfplan
2222 # Write atomically so other containers don't observe a partially-written file.
2323 terraform show -json /tmp/plan.tfplan | jq -r '.planned_values.outputs.dbx_proxy_cfg.value' > /out/dbx-proxy.cfg.tmp
2424 mv /out/dbx-proxy.cfg.tmp /out/dbx-proxy.cfg
Original file line number Diff line number Diff line change 1- dbx_proxy_image_version = " test "
1+ dbx_proxy_image_version = " latest "
22dbx_proxy_health_port = 8080
33dbx_proxy_max_connections = 8192
44dbx_proxy_listener = [
You can’t perform that action at this time.
0 commit comments