2023-09-21 14:58:01 +03:00
|
|
|
COMPOSE_FILE="docker-compose-prod.yml"
|
|
|
|
BACKUP_SCRIPT="./scripts/prod/CreateBackup.sh"
|
|
|
|
|
2024-05-09 13:13:49 +03:00
|
|
|
git fetch --all
|
|
|
|
git reset --hard origin/main
|
2023-09-21 14:58:01 +03:00
|
|
|
|
|
|
|
/bin/bash "${BACKUP_SCRIPT}"
|
|
|
|
|
|
|
|
docker compose --file "${COMPOSE_FILE}" up --build --detach
|
2025-07-17 19:33:41 +03:00
|
|
|
docker compose --file "${COMPOSE_FILE}" restart
|
2025-07-21 11:35:41 +03:00
|
|
|
docker compose --file "${COMPOSE_FILE}" restart nginx
|
2024-06-04 01:43:04 +03:00
|
|
|
|
|
|
|
# Use this to prune caches
|
|
|
|
# docker system prune -a -f
|
2023-09-22 23:30:28 +03:00
|
|
|
|
|
|
|
# Use this command to restart containers if something went wrong
|
|
|
|
# docker compose --file "docker-compose-prod.yml" restart
|