initial public commit
This commit is contained in:
commit
6bd9323fed
9 changed files with 645 additions and 0 deletions
20
certbot-runner
Executable file
20
certbot-runner
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Define variables
|
||||
CONTAINER_NAME="certbot"
|
||||
IMAGE_NAME="legacy-registry.sexycoders.org/proxy:latest"
|
||||
LETSENCRYPT_DIR="./letsencrypt"
|
||||
|
||||
# Stop and remove the container if it's already running
|
||||
if docker ps -a | grep -q $CONTAINER_NAME; then
|
||||
echo "Stopping and removing existing container..."
|
||||
docker rm -f $CONTAINER_NAME
|
||||
fi
|
||||
|
||||
# Run the container interactively with auto-remove
|
||||
echo "Starting container with letsencrypt directory bound..."
|
||||
docker run --rm -it \
|
||||
--name $CONTAINER_NAME \
|
||||
-v $LETSENCRYPT_DIR:/etc/letsencrypt \
|
||||
$IMAGE_NAME bash
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue