~jeffa/old-jeffa.io

ref: b3b87a4bc53e647fb00b636c22baa7b1fbc90b92 old-jeffa.io/docker-run.sh -rw-r--r-- 561 bytes
b3b87a4bJeff Anderson Update homepage; Remove recommended.md 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /bin/bash
echo "Clearing docker containers and images...";
sleep 3;

docker stop "$(docker ps -aq)";
docker rm "$(docker ps -aq)";
docker rmi "$(docker images -aq)";

echo "Fetching and running new container...";
sleep 3;

docker run \
    --name jeffa.io \
    --detach \
    --volume /mnt/blockstorage:/etc/letsencrypt \
    --publish 80:80 \
    --publish 443:443 \
    --restart always \
    jkanderson409/jeffa.io;

docker exec \
    jeffa.io \
    certbot run \
        -n \
        --nginx \
        --domain jeffa.io \
        --domain www.jeffa.io;