passwd0/create

9 lines
329 B
Plaintext
Raw Normal View History

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