2018-09-03 17:38:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
docker build -t passwd0 .
|
|
|
|
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 passwd-db \
|
|
|
|
passwd0:latest
|
2018-09-09 23:29:19 +00:00
|
|
|
docker network connect web passwd0
|