crunch/scripts/local_down.sh

20 lines
361 B
Bash
Raw Normal View History

#!/bin/bash
set -e
docker_compose_content=$(cat <<EOF
version: "3"
services:
postgres:
image: "postgres:latest"
environment:
POSTGRES_USER: cuddle
POSTGRES_PASSWORD: cuddle
POSTGRES_DB: cuddle
ports:
- "5432:5432"
EOF)
docker-compose -p cuddle_local -f <(echo "$docker_compose_content") down --remove-orphans --volumes