Add docker-compose.yml and friends

This commit is contained in:
xmrcheckout
2026-01-04 17:57:07 +01:00
parent c92dfd2ef1
commit 5e0ca00af2
8 changed files with 376 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -eu
cert_dir="/etc/nginx/certs"
cert_path="${cert_dir}/dev.crt"
key_path="${cert_dir}/dev.key"
if [ ! -f "$cert_path" ] || [ ! -f "$key_path" ]; then
mkdir -p "$cert_dir"
rm -f "$cert_path" "$key_path"
openssl req \
-x509 \
-nodes \
-newkey rsa:2048 \
-days 365 \
-keyout "$key_path" \
-out "$cert_path" \
-subj "/CN=localhost"
fi
exec "$@"