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:
|
services:
|
||||||
# HAProxy Load Balancer
|
# HAProxy Load Balancer
|
||||||
haproxy:
|
haproxy:
|
||||||
@ -169,11 +171,10 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
# Health check settings
|
# Health check settings
|
||||||
healthcheck:
|
healthcheck:
|
||||||
# Test the health of the service using pg_isready
|
test: ["CMD", "/opt/bitnami/scripts/pgpool/healthcheck.sh"]
|
||||||
test: ["CMD", "pg_isready", "-h", "localhost", "-p", "5432", "-U", "${DATABASE_USER:-dbuser}"]
|
interval: 10s
|
||||||
interval: 10s # Check every 10 seconds
|
timeout: 5s
|
||||||
timeout: 5s # Timeout after 5 seconds
|
retries: 5
|
||||||
retries: 5 # Retry up to 5 times
|
|
||||||
|
|
||||||
# Primary PostgreSQL database
|
# Primary PostgreSQL database
|
||||||
db:
|
db:
|
||||||
@ -249,4 +250,4 @@ services:
|
|||||||
# Limit CPU usage (default: 0.5 cores)
|
# Limit CPU usage (default: 0.5 cores)
|
||||||
cpus: '${DB_CPU_LIMIT:-0.5}'
|
cpus: '${DB_CPU_LIMIT:-0.5}'
|
||||||
# Limit RAM usage (default: 256MB)
|
# Limit RAM usage (default: 256MB)
|
||||||
memory: ${DB_MEMORY_LIMIT:-256M}
|
memory: ${DB_MEMORY_LIMIT:-256M}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user