Files
apis.cardplayersunited.com/compose.bash
2026-02-09 11:38:30 -05:00

14 lines
356 B
Bash
Executable File

#!/bin/bash
set -e
set -x
# 1. Shut down existing containers
docker compose down --remove-orphans
# 2. Build and start containers in the background
# The Dockerfile's CMD will handle migrations and runserver automatically.
docker compose up -d --build
# 3. (Optional) Check the logs to ensure the migrations finished successfully
docker compose logs -f