2024-06-07 20:17:03 +03:00
|
|
|
COMPOSE_FILE="docker-compose-prod.yml"
|
|
|
|
BACKUP_SCRIPT="./scripts/prod/CreateBackup.sh"
|
|
|
|
|
|
|
|
git fetch --all
|
|
|
|
git reset --hard origin/main
|
|
|
|
|
|
|
|
/bin/bash "${BACKUP_SCRIPT}"
|
|
|
|
|
2025-07-23 12:13:05 +03:00
|
|
|
docker compose --file "${COMPOSE_FILE}" up --build --detach --force-recreate
|
2025-07-21 11:35:19 +03:00
|
|
|
docker compose --file "${COMPOSE_FILE}" restart nginx
|
2024-06-07 20:17:03 +03:00
|
|
|
|
|
|
|
# Use this to prune caches
|
|
|
|
# docker system prune -a -f
|
|
|
|
|
|
|
|
# Use this command to restart containers if something went wrong
|
|
|
|
# docker compose --file "docker-compose-prod.yml" restart
|