File: Makefile

package info (click to toggle)
pg-auto-failover 2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: ansic: 58,369; python: 5,515; sql: 3,177; makefile: 629; sh: 35
file content (24 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CONTAINER_NAME = pg_auto_failover:tutorial

all: build down up;

build:
	docker compose build

up:
	docker compose up app monitor node1 node2

node3:
	docker compose up -d node3

down:
	docker compose down

state:
	docker compose exec monitor pg_autoctl show state

switchover:
	docker compose exec monitor pg_autoctl perform switchover

watch:
	docker compose exec monitor pg_autoctl watch