~jeffa/jeffa.io

ref: e1d7e192c7c2c3bdb449977dc734cecd2ca13df2 jeffa.io/docker-dev.sh -rw-r--r-- 427 bytes
e1d7e192Jeff Add scripts to run container in production and development 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
DEV_PORT="8080"

echo "Clearing docker containers...";

docker stop $(docker ps -aq);
docker rm $(docker ps -aq);

echo "Building container...";

docker build -t jkanderson409/jeffa.io .;

echo "Running container...";

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

echo "Container is running at $DEV_PORT";