push
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
certgen:
|
certgen:
|
||||||
image: alpine:3.20
|
image: alpine:3.20
|
||||||
@@ -21,12 +23,12 @@ services:
|
|||||||
image: haproxy:3.2
|
image: haproxy:3.2
|
||||||
depends_on: [certgen]
|
depends_on: [certgen]
|
||||||
command: >
|
command: >
|
||||||
sh -c '
|
sh -euc '
|
||||||
for i in 1 2 3 4 5; do
|
for i in $(seq 1 15); do
|
||||||
[ -f /certs/selfsigned.pem ] && break;
|
[ -f /certs/selfsigned.pem ] && break
|
||||||
sleep 1;
|
sleep 1
|
||||||
done;
|
done
|
||||||
haproxy -f /usr/local/etc/haproxy/haproxy.cfg
|
exec haproxy -f /usr/local/etc/haproxy/haproxy.cfg
|
||||||
'
|
'
|
||||||
volumes:
|
volumes:
|
||||||
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
|
||||||
|
Reference in New Issue
Block a user