mirror of
https://github.com/kristoferssolo/Axium.git
synced 2025-10-21 16:00:34 +00:00
Small bugfix to allow the loadbalanced docker-compose to work in Linux.
This commit is contained in:
parent
4faf155f82
commit
d0e23bef82
@ -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}
|
||||
memory: ${DB_MEMORY_LIMIT:-256M}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user