mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
13 lines
360 B
Bash
13 lines
360 B
Bash
COMPOSE_FILE="docker-compose-prod.yml"
|
|
BACKUP_SCRIPT="./scripts/prod/CreateBackup.sh"
|
|
|
|
git reset --hard
|
|
git pull
|
|
|
|
/bin/bash "${BACKUP_SCRIPT}"
|
|
|
|
docker compose --file "${COMPOSE_FILE}" up --build --detach
|
|
docker image prune --all --force
|
|
|
|
# Use this command to restart containers if something went wrong
|
|
# docker compose --file "docker-compose-prod.yml" restart |