Move postgres to zippy.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user