Files
apis.cardplayersunited.com/compose.bash

14 lines
356 B
Bash
Raw Normal View History

2026-02-09 11:06:47 -05:00
#!/bin/bash
set -e
2026-02-09 11:38:30 -05:00
set -x
2026-02-09 11:06:47 -05:00
2026-02-09 11:38:30 -05:00
# 1. Shut down existing containers
2026-02-09 11:10:16 -05:00
docker compose down --remove-orphans
2026-02-09 11:06:47 -05:00
2026-02-09 11:38:30 -05:00
# 2. Build and start containers in the background
# The Dockerfile's CMD will handle migrations and runserver automatically.
docker compose up -d --build
2026-02-09 11:06:47 -05:00
2026-02-09 11:38:30 -05:00
# 3. (Optional) Check the logs to ensure the migrations finished successfully
docker compose logs -f