#!/bin/bash
# This script is a convenience affording one-command brain erasure.
set -xe
docker-compose stop
docker-compose rm -f --all
docker-compose up -d
sleep 7
docker-compose exec database createdb -h localhost -U postgres timewebsite
docker-compose exec web python db_create.py
docker-compose exec web python test_data.py
docker inspect -f 'http://{{ .NetworkSettings.Networks.timewebsite_default.IPAddress}}:5000' timewebsite_web_1

#!/bin/bash
# This script is a convenience affording one-command brain erasure.
set -xe
docker-compose stop
docker-compose rm -f
docker-compose up -d
sleep 7
docker-compose exec database createdb -h localhost -U postgres timewebsite
docker-compose exec web python db_create.py
docker-compose exec web python test_data.py
docker inspect -f 'http://{{ .NetworkSettings.Networks.timewebsite_default.IPAddress}}:5000' timewebsite_web_1

Remove docker-compose deprecated --all arg
Remove docker-compose deprecated --all arg
