push
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user