Add custom command options for MariaDB service in swarm-compose.yml to optimize connection handling and timeout settings, enhancing database performance and reliability.

This commit is contained in:
2025-12-21 22:14:17 -05:00
parent 313dde6196
commit 555784d7e8

View File

@@ -42,6 +42,13 @@ services:
db:
image: mariadb:10.11
command:
- --wait_timeout=28800
- --interactive_timeout=28800
- --max_connections=500
- --net_read_timeout=60
- --net_write_timeout=60
- --max_allowed_packet=64M
environment:
- MARIADB_ROOT_PASSWORD=squirtle123456
- MYSQL_LOG_CONSOLE=true