Skip to content

Commit

Permalink
Use version 3 for powa_remote_mode.yml compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuju committed Jul 27, 2024
1 parent e16f194 commit 6d1ffd9
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions compose/powa_remote_mode.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "3"

services:
powa-repository:
Expand All @@ -19,25 +19,26 @@ services:
port => 5434,
frequency => 15,
extensions => '{pg_stat_kcache,pg_qualstats,pg_wait_sampling,pg_track_settings}');
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -AXtc 'SELECT count(*) FROM powa_servers' powa | grep 3"]

powa-collector:
image: powateam/powa-collector-git
container_name: powa-git-collector
restart: on-failure
links:
- powa-repository
- remote-primary
- remote-standby
depends_on:
powa-repository:
condition: service_healthy
remote-primary:
condition: service_healthy
remote-standby:
condition: service_healthy

powa-web-git:
image: powateam/powa-web-git
container_name: powa-git-web
ports:
- 8888:8888
links:
- powa-repository
- remote-primary
- remote-standby

remote-primary:
image: powateam/powa-archivist-git
Expand All @@ -47,6 +48,8 @@ services:
POSTGRES_HOST_AUTH_METHOD: 'trust'
POWA_ROLE: 'PRIMARY'
POWA_LOCAL_SNAPSHOT: 'NO'
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -AXtc 'SELECT count(*) FROM powa_servers' powa"]

remote-standby:
image: powateam/powa-archivist-git
Expand All @@ -58,3 +61,9 @@ services:
POWA_PRIMARY: 'remote-primary'
POWA_PRIMARY_PORT: '5433'
POWA_LOCAL_SNAPSHOT: 'NO'
restart: on-failure
depends_on:
remote-primary:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "psql -U postgres -AXtc 'SELECT count(*) FROM powa_servers' powa"]

0 comments on commit 6d1ffd9

Please sign in to comment.