From 4fe5e653dcca035bcf127e65d9c469a561e492a5 Mon Sep 17 00:00:00 2001 From: Paul Liverman III Date: Sun, 9 Sep 2018 21:51:23 -0700 Subject: [PATCH] fixup creation/running file --- create => run | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename create => run (69%) diff --git a/create b/run similarity index 69% rename from create rename to run index 311b602..eb779fc 100755 --- a/create +++ b/run @@ -1,8 +1,15 @@ #!/usr/bin/env bash -docker build -t dt0 . +docker stop dt0 +docker rm dt0 +docker stop dt-db +docker rm dt-db +docker network create web docker network create dt-db + +docker build -t dt0 . docker run -d --restart always --name dt-db --network dt-db \ -v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine +sleep 5 # give Postgres time to start docker run -d --restart always --name dt0 --network dt-db \ dt0:latest docker network connect web dt0