This commit is contained in:
Матвей
2026-11-05 21:17:50 +03:00
parent 470d9d6f1e
commit 66026d3ec9
62 changed files with 5351 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
[leveldb2]
enabled = true
dir = "/data/filer"
+35
View File
@@ -0,0 +1,35 @@
global
log stdout format raw local0
defaults
mode http
log global
option httplog
option forwardfor
timeout connect 1s
timeout client 30s
timeout server 10s
timeout check 2s
retries 2
resolvers docker
nameserver dns 127.0.0.11:53
resolve_retries 3
timeout resolve 1s
timeout retry 1s
hold valid 2s
hold obsolete 2s
frontend http
bind :8080
default_backend api
backend api
balance roundrobin
option httpchk
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host localhost
http-check expect status 200
default-server check inter 2s fall 1 rise 2 resolvers docker resolve-prefer ipv4 init-addr libc,none
server api-a api-a:8080
server api-b api-b:8080
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -eu
# RabbitMQ 4 no longer supports *_FILE. Keep the password in a Docker
# secret and export it only inside the running container, never in Compose.
RABBITMQ_DEFAULT_PASS="$(cat /run/secrets/rabbitmq_password)"
if [ -z "$RABBITMQ_DEFAULT_PASS" ]; then
echo "RabbitMQ password secret must not be empty" >&2
exit 1
fi
export RABBITMQ_DEFAULT_PASS
exec /usr/local/bin/docker-entrypoint.sh "$@"