This commit is contained in:
Mateusz Gruszczyński
2025-09-22 09:21:37 +02:00
parent 626990a77b
commit 392562e0ea

View File

@@ -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