Files
docker-postgis/docker-test.sh
Roman Vanicek 7e3e97a8bf
All checks were successful
continuous-integration/drone/push Build is passing
Configuration using env vars. Adding standby works.
2024-04-09 01:53:53 +02:00

8 lines
2.1 KiB
Bash

docker create --name pg-Monitor -e AUTOCONFIG_MODE=monitor -e AUTOCONFIG_LOG_LEVEL=trace -e POSTGRES_USERNAME=postgres -e POSTGRES_PASSWORD=heslo -e AUTOCONFIG_MONITOR_PASSWORD=heslo2 -e AUTOCONFIG_REPLICATION_PASSWORD=heslo3 -e PGPORT=5431 -e XDG_CONFIG_HOME=/data/failover-config -e XDG_DATA_HOME=/data/failover-state -e PGDATA=/data/data -e AUTOCONFIG_LINK_HBA_CONF=/data/pg_hba.conf --hostname pg-Monitor --user 999:999 --network app -v /temp/pgMon:/data -v /temp/pg_hba.conf:/data/pg_hba.conf postgis-test
docker create --name pg-1 -e AUTOCONFIG_MODE=postgres -e AUTOCONFIG_LOG_LEVEL=trace -e POSTGRES_USERNAME=postgres -e POSTGRES_PASSWORD=heslo -e AUTOCONFIG_MONITOR_PASSWORD=heslo2 -e AUTOCONFIG_REPLICATION_PASSWORD=heslo3 -e PGPORT=5431 -e XDG_CONFIG_HOME=/data/failover-config -e XDG_DATA_HOME=/data/failover-state -e PGDATA=/data/data -e AUTOCONFIG_LINK_HBA_CONF=/data/pg_hba.conf -e AUTOCONFIG_MONITOR_HOST=pg-Monitor -e AUTOCONFIG_LOCAL_PEER=true -e AUTOCONFIG_SOCKET=/data/pg_autoconfig.sock --hostname pg-1 --user 999:999 --network app -v /temp/pg1:/data -v /temp/pg_hba.conf:/data/pg_hba.conf postgis-test
docker create --name pg-2 -e AUTOCONFIG_MODE=postgres -e AUTOCONFIG_LOG_LEVEL=trace -e POSTGRES_USERNAME=postgres -e POSTGRES_PASSWORD=heslo -e AUTOCONFIG_MONITOR_PASSWORD=heslo2 -e AUTOCONFIG_REPLICATION_PASSWORD=heslo3 -e PGPORT=5431 -e XDG_CONFIG_HOME=/data/failover-config -e XDG_DATA_HOME=/data/failover-state -e PGDATA=/data/data -e AUTOCONFIG_LINK_HBA_CONF=/data/pg_hba.conf -e AUTOCONFIG_MONITOR_HOST=pg-Monitor -e AUTOCONFIG_LOCAL_PEER=true -e AUTOCONFIG_SOCKET=/data/pg_autoconfig.sock --hostname pg-2 --user 999:999 --network app -v /temp/pg2:/data -v /temp/pg_hba.conf:/data/pg_hba.conf postgis-test
docker create --name pg-2-pool --hostname pg-2-pool -e PGPOOL_ADMIN_USERNAME=pgpool -e PGPOOL_ADMIN_PASSWORD=heslo -e PGPOOL_HEALTH_CHECK_USER=postgres -e PGPOOL_SR_CHECK_USER=postgres -e PGPOOL_ENABLE_POOL_PASSWD=false -e PGPOOL_ENABLE_POOL_HBA=false -e AUTOPOOL_LOG_LEVEL=trace --user 999:999 --network app -v /temp/pg2:/data pgpool-test --local --socket /data/pg_autoconfig.sock