Just some minor tweaks
This commit is contained in:
Binary file not shown.
@@ -3,11 +3,11 @@ version: '3.3'
|
||||
services:
|
||||
primary:
|
||||
hostname: 'primary'
|
||||
image: crunchydata/crunchy-postgres:centos7-10.3-1.8.2
|
||||
image: crunchydata/crunchy-postgres:ubi8-15.2-0
|
||||
secrets:
|
||||
- postgres_primary
|
||||
- postgres_password
|
||||
- postgres_rootpw
|
||||
- postgres_primary
|
||||
- postgres_password
|
||||
- postgres_rootpw
|
||||
environment:
|
||||
- PGHOST=/tmp
|
||||
- MAX_CONNECTIONS=10
|
||||
@@ -25,14 +25,14 @@ services:
|
||||
ports:
|
||||
- '5432'
|
||||
networks:
|
||||
- infra
|
||||
- postgres
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.type == primary
|
||||
- node.role == worker
|
||||
replica:
|
||||
image: crunchydata/crunchy-postgres:centos7-10.3-1.8.2
|
||||
image: crunchydata/crunchy-postgres:ubi8-15.2-0
|
||||
secrets:
|
||||
- postgres_primary
|
||||
- postgres_password
|
||||
@@ -55,15 +55,14 @@ services:
|
||||
ports:
|
||||
- '5432'
|
||||
networks:
|
||||
- infra
|
||||
- postgres
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.type != primary
|
||||
- node.role == worker
|
||||
networks:
|
||||
infra:
|
||||
|
||||
postgres:
|
||||
volumes:
|
||||
pg-primary-vol:
|
||||
pg-replica-vol:
|
||||
|
||||
Reference in New Issue
Block a user