diff --git a/run b/run index 56e79d0..8263028 100755 --- a/run +++ b/run @@ -4,9 +4,12 @@ docker rm passwd0 docker stop passwd-db docker rm passwd-db docker build -t passwd0 . +docker network create web docker network create passwd-db docker run -d --restart always --name passwd-db --network passwd-db \ -v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine -docker run -d --restart always --name passwd0 --network web \ +sleep 5 +docker run -d --restart always --name passwd0 --network passwd-db \ passwd0:latest -docker network connect passwd-db passwd0 +sleep 5 +docker network connect web passwd0