Move postgres to zippy.

This commit is contained in:
2025-10-22 14:05:45 +01:00
parent f414ac0146
commit a948f26ffb
3 changed files with 17 additions and 5 deletions

View File

@@ -7,6 +7,12 @@ job "postgres" {
group "db" {
# Run on primary storage node (zippy) for local disk performance
constraint {
attribute = "${meta.storage_role}"
value = "primary"
}
network {
port "db" {
static = 5432
@@ -23,7 +29,7 @@ job "postgres" {
config {
image = "postgis/postgis:15-3.4-alpine"
ports = ["db"]
volumes = [ "/data/compute/appdata/postgres:/var/lib/postgresql/data" ]
volumes = [ "/data/services/postgres:/var/lib/postgresql/data" ]
}
env {
@@ -72,7 +78,7 @@ job "postgres" {
config {
image = "dpage/pgadmin4:latest"
ports = ["admin"]
volumes = [ "/data/compute/appdata/pgadmin:/var/lib/pgadmin" ]
volumes = [ "/data/services/pgadmin:/var/lib/pgadmin" ]
}
env {