From 392562e0eac1040a7003d053d6769c1da724eb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Mon, 22 Sep 2025 09:21:37 +0200 Subject: [PATCH] push --- docker-compose.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3411bae..f6d1b3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +version: "3.9" + services: certgen: image: alpine:3.20 @@ -21,12 +23,12 @@ services: image: haproxy:3.2 depends_on: [certgen] command: > - sh -c ' - for i in 1 2 3 4 5; do - [ -f /certs/selfsigned.pem ] && break; - sleep 1; - done; - haproxy -f /usr/local/etc/haproxy/haproxy.cfg + sh -euc ' + for i in $(seq 1 15); do + [ -f /certs/selfsigned.pem ] && break + sleep 1 + done + exec haproxy -f /usr/local/etc/haproxy/haproxy.cfg ' volumes: - ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro