7 lines
239 B
Plaintext
7 lines
239 B
Plaintext
|
#!/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
|