Format terraform and nomad files
This commit is contained in:
3
.vscode/extensions.json
vendored
Normal file
3
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["hashicorp.terraform", "fredwangwang.vscode-hcl-format"]
|
||||
}
|
||||
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"editor.tabSize": 2,
|
||||
"editor.insertSpaces": true,
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
@@ -28,7 +28,7 @@ job "pgbackup" {
|
||||
image = "postgres:latest"
|
||||
command = "/bin/bash"
|
||||
args = ["-c", "pg_dumpall -h localhost -U postgres > /backup/all_databases.sql"]
|
||||
volumes = [ "secrets/postgres_password:/run/secrets/postgres_password" ]
|
||||
volumes = ["secrets/postgres_password:/run/secrets/postgres_password"]
|
||||
}
|
||||
|
||||
user = "1000"
|
||||
@@ -66,7 +66,7 @@ EOF
|
||||
attachment_mode = "file-system"
|
||||
|
||||
mount_options {
|
||||
mount_flags = ["uid=1000","gid=0"]
|
||||
mount_flags = ["uid=1000", "gid=0"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ job "transfer" {
|
||||
attachment_mode = "file-system"
|
||||
|
||||
mount_options {
|
||||
mount_flags = ["uid=911","gid=1000"] # linuxserver.io container services run as uid 911
|
||||
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ job "transfer" {
|
||||
attachment_mode = "file-system"
|
||||
|
||||
mount_options {
|
||||
mount_flags = ["uid=911","gid=1000"] # linuxserver.io container services run as uid 911
|
||||
mount_flags = ["uid=911", "gid=1000"] # linuxserver.io container services run as uid 911
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ job "demo-webapp" {
|
||||
count = 3
|
||||
|
||||
network {
|
||||
port "http"{
|
||||
port "http" {
|
||||
to = -1
|
||||
}
|
||||
}
|
||||
@@ -27,8 +27,8 @@ job "demo-webapp" {
|
||||
|
||||
task "server" {
|
||||
env {
|
||||
PORT = "${NOMAD_PORT_http}"
|
||||
NODE_IP = "${NOMAD_IP_http}"
|
||||
PORT = NOMAD_PORT_http
|
||||
NODE_IP = NOMAD_IP_http
|
||||
}
|
||||
|
||||
driver = "docker"
|
||||
|
||||
Reference in New Issue
Block a user