passwd0/run

16 lines
476 B
Plaintext
Raw Normal View History

2018-09-03 17:38:10 +00:00
#!/usr/bin/env bash
2018-09-10 03:29:08 +00:00
docker stop passwd0
docker rm passwd0
docker stop passwd-db
docker rm passwd-db
2018-09-10 03:32:15 +00:00
docker network create web
2018-09-03 17:38:10 +00:00
docker network create passwd-db
docker build -t passwd0 .
2018-09-03 17:38:10 +00:00
docker run -d --restart always --name passwd-db --network passwd-db \
-v "$PWD/db":/var/lib/postgresql/data postgres:10.5-alpine
sleep 5 # give Postgres time to start
2018-09-10 03:32:15 +00:00
docker run -d --restart always --name passwd0 --network passwd-db \
2018-09-03 17:38:10 +00:00
passwd0:latest
2018-09-10 03:32:15 +00:00
docker network connect web passwd0