fixup creation/running file
This commit is contained in:
parent
bea52a9712
commit
4fe5e653dc
@ -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
|
Loading…
Reference in New Issue
Block a user