Fix ASYNC tests and managing the individual tests
This commit is contained in:
+11
-56
@@ -1,8 +1,7 @@
|
||||
volumes:
|
||||
caddy_data:
|
||||
caddy_config:
|
||||
pg_0_data:
|
||||
pg_1_data:
|
||||
postgres:
|
||||
|
||||
services:
|
||||
caddy:
|
||||
@@ -39,59 +38,15 @@ services:
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
|
||||
pg-0:
|
||||
container_name: "postgres-0"
|
||||
image: docker.io/bitnami/postgresql-repmgr:14
|
||||
ports:
|
||||
- 5432
|
||||
postgres:
|
||||
container_name: postgres_container
|
||||
image: docker.io/postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-user}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-passwd}
|
||||
PGDATA: /data/postgres
|
||||
volumes:
|
||||
- pg_0_data:/bitnami/postgresql
|
||||
environment:
|
||||
- POSTGRESQL_POSTGRES_PASSWORD=${POSTGRESQL_ADMIN_PASSWD:-password}
|
||||
- POSTGRESQL_USERNAME=${POSTGRESQL_USERNAME:-user}
|
||||
- POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD:-passwd}
|
||||
- POSTGRESQL_DATABASE=${POSTGRESQL_DATABASE:-customdatabase}
|
||||
- REPMGR_PASSWORD=${REPMGR_PASSWORD:-repmgrpassword}
|
||||
- REPMGR_PRIMARY_HOST=pg-0
|
||||
- REPMGR_PARTNER_NODES=pg-0,pg-1
|
||||
- REPMGR_NODE_NAME=pg-0
|
||||
- REPMGR_NODE_NETWORK_NAME=pg-0
|
||||
|
||||
pg-1:
|
||||
container_name: "postgres-1"
|
||||
image: docker.io/bitnami/postgresql-repmgr:14
|
||||
- postgres:/data/postgres
|
||||
ports:
|
||||
- 5432
|
||||
volumes:
|
||||
- pg_1_data:/bitnami/postgresql
|
||||
environment:
|
||||
- POSTGRESQL_POSTGRES_PASSWORD=${POSTGRESQL_ADMIN_PASSWD:-password}
|
||||
- POSTGRESQL_USERNAME=${POSTGRESQL_USERNAME:-user}
|
||||
- POSTGRESQL_PASSWORD=${POSTGRESQL_PASSWORD:-passwd}
|
||||
- POSTGRESQL_DATABASE=${POSTGRESQL_DATABASE:-customdatabase}
|
||||
- REPMGR_PASSWORD=${REPMGR_PASSWORD:-repmgrpassword}
|
||||
- REPMGR_PRIMARY_HOST=pg-0
|
||||
- REPMGR_PARTNER_NODES=pg-0,pg-1
|
||||
- REPMGR_NODE_NAME=pg-1
|
||||
- REPMGR_NODE_NETWORK_NAME=pg-1
|
||||
|
||||
pgpool:
|
||||
container_name: "pgpool"
|
||||
image: docker.io/bitnami/pgpool:4
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
- PGPOOL_BACKEND_NODES=0:pg-0:5432,1:pg-1:5432
|
||||
- PGPOOL_SR_CHECK_USER=${POSTGRESQL_USERNAME:-user}
|
||||
- PGPOOL_SR_CHECK_PASSWORD=${POSTGRESQL_PASSWORD:-passwd}
|
||||
- PGPOOL_ENABLE_LDAP=no
|
||||
- PGPOOL_POSTGRES_USERNAME=${PGPOOL_POSTGRES_USERNAME:-user}
|
||||
- PGPOOL_POSTGRES_PASSWORD=${POSTGRESQL_ADMIN_PASSWD:-password}
|
||||
- PGPOOL_ADMIN_USERNAME=${PGPOOL_ADMIN_USERNAME:-admin}
|
||||
- PGPOOL_ADMIN_PASSWORD=${PGPOOL_ADMIN_PASSWORD:-adminpassword}
|
||||
healthcheck:
|
||||
test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
- "5432:5432"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user