diff --git a/docker-compose.loadbalanced.yml b/docker-compose.loadbalanced.yml index c1eb994..8f18593 100644 --- a/docker-compose.loadbalanced.yml +++ b/docker-compose.loadbalanced.yml @@ -1,3 +1,5 @@ +# Make sure that the databases are exactly the same before running Axium. + services: # HAProxy Load Balancer haproxy: @@ -169,11 +171,10 @@ services: condition: service_healthy # Health check settings healthcheck: - # Test the health of the service using pg_isready - test: ["CMD", "pg_isready", "-h", "localhost", "-p", "5432", "-U", "${DATABASE_USER:-dbuser}"] - interval: 10s # Check every 10 seconds - timeout: 5s # Timeout after 5 seconds - retries: 5 # Retry up to 5 times + test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"] + interval: 10s + timeout: 5s + retries: 5 # Primary PostgreSQL database db: @@ -249,4 +250,4 @@ services: # Limit CPU usage (default: 0.5 cores) cpus: '${DB_CPU_LIMIT:-0.5}' # Limit RAM usage (default: 256MB) - memory: ${DB_MEMORY_LIMIT:-256M} \ No newline at end of file + memory: ${DB_MEMORY_LIMIT:-256M}