passwd0/create
2018-09-09 16:29:19 -07:00

9 lines
329 B
Bash
Executable File

#!/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
docker network connect web passwd0