uci-docker-nextcloud/deploy/update

7 lines
239 B
Plaintext
Raw Normal View History

2024-09-12 16:21:59 -07:00
#!/bin/bash
[[ $1 ]] && ENV_FILE=${1}.env || ENV_FILE=.env
export ENV_FILE; docker-compose --env-file $ENV_FILE down
docker-compose pull
export ENV_FILE; docker-compose --env-file $ENV_FILE up --remove-orphans -d
yes | docker image prune