fixup creation/running file

This commit is contained in:
Paul Liverman III 2018-09-09 21:51:23 -07:00
parent bea52a9712
commit 4fe5e653dc

View File

@ -1,8 +1,15 @@
#!/usr/bin/env bash #!/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 network create dt-db
docker build -t dt0 .
docker run -d --restart always --name dt-db --network dt-db \ docker run -d --restart always --name dt-db --network dt-db \
-v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine -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 \ docker run -d --restart always --name dt0 --network dt-db \
dt0:latest dt0:latest
docker network connect web dt0 docker network connect web dt0