File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ x-node: &node
1414 PG_AUTOCTL_MONITOR : " postgresql://autoctl_node@monitor/pg_auto_failover"
1515 expose :
1616 - 5432
17+ networks :
18+ - aligned-network
1719
1820volumes :
1921 postgres_data :
@@ -60,6 +62,8 @@ services:
6062 - " 5436:5432"
6163 command : |
6264 pg_autoctl create monitor --auth trust --run
65+ networks :
66+ - aligned-network
6367
6468 node1 :
6569 << : *node
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ services:
2828 - POSTGRES_USER=postgres
2929 - POSTGRES_PASSWORD=postgres
3030 - PROMETHEUS_URL=http://prometheus:9090
31- - MONITOR_DB_HOST=host.docker.internal
32- - MONITOR_DB_PORT=5436
31+ - MONITOR_DB_HOST=monitor
32+ - MONITOR_DB_PORT=5432
3333 - MONITOR_DB_DB=pg_auto_failover
3434 - MONITOR_DB_USER=autoctl_node
3535 extra_hosts :
You can’t perform that action at this time.
0 commit comments