Add initial PostgreSQL and pgAdmin services with Nomad configuration
This commit is contained in:
@@ -50,10 +50,19 @@
|
||||
path = "/opt/traefik";
|
||||
read_only = false;
|
||||
};
|
||||
postgres = {
|
||||
path = "/opt/postgres";
|
||||
read_only = false;
|
||||
};
|
||||
};
|
||||
cni_path = "${pkgs.cni-plugins}/bin";
|
||||
};
|
||||
plugin.docker.config.allow_privileged = true;
|
||||
};
|
||||
extraPackages = with pkgs; [
|
||||
cni-plugins
|
||||
consul
|
||||
];
|
||||
};
|
||||
consul = {
|
||||
enable = true;
|
||||
@@ -65,6 +74,8 @@
|
||||
server = true;
|
||||
client_addr = "127.0.0.1 100.79.223.55";
|
||||
datacenter = "jaglan-beta";
|
||||
connect.enabled = true;
|
||||
ports.grpc = 8502;
|
||||
};
|
||||
};
|
||||
openssh = {
|
||||
@@ -78,6 +89,8 @@
|
||||
"d /var/lib/alloc_mounts 0755 root root -"
|
||||
# Create a directory for Traefik to store its data (tls certs, etc.)
|
||||
"d /opt/traefik 0755 root root -"
|
||||
# Create a directory for Postgres to store its data
|
||||
"d /opt/postgres 0755 root root -"
|
||||
];
|
||||
|
||||
# Open ports in the firewall. 464X are the default ports for Nomad.
|
||||
|
||||
Reference in New Issue
Block a user