···5656[doc("Just runs the Podman image for a Redis and Postgres server for local development run to connect to.")]
5757[group("local-devel")]
5858local-devel-prep: create-data-dirs
5959- # The redis container can be replaced if it already exists, but the postgres container needs to be checked, due to
6060- # sqlx needing to connect to it to create the database and run the migrations, so if it is restarted, it may not be
6161- # ready by the time sqlx tries to connect.
6262- podman run --replace --name lumina-redis -p 6379:6379 -v ./data/redis:/data -d docker.io/redis/redis-stack:7.2.0-v18
5959+ @podman inspect -f '{{{{.State.Running}}}}' lumina-redis 2>/dev/null | grep -q 'true' \
6060+ && echo "lumina-redis is already running." \
6161+ || podman run -d --replace \
6262+ --name lumina-redis \
6363+ -p 6379:6379 \
6464+ -v ./data/redis:/data \
6565+ docker.io/redis/redis-stack:7.2.0-v18
6366 @podman inspect -f '{{{{.State.Running}}}}' luminadb 2>/dev/null | grep -q 'true' \
6467 && echo "luminadb is already running." \
6565- || podman run -d -p 5432:5432 \
6868+ || podman run -d --replace \
6969+ -p 5432:5432 \
6670 --name luminadb \
6771 -e POSTGRES_USER=lumina \
6872 -e POSTGRES_PASSWORD=lumina_pw \