Skip to content

Commit

Permalink
Start using 'docker compose' instead of docker-compose
Browse files Browse the repository at this point in the history
Recent upgrade left me with error when trying to redeploy:

KeyError: 'ContainerConfig'

See https://stackoverflow.com/a/78225629/11827
and https://docs.docker.com/compose/migrate/
  • Loading branch information
szabgab committed Mar 27, 2024
1 parent 8db7eb7 commit 4623aa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/usr/bin/bash
export PATH=$PATH:/home/gabor/docker-compose/bin
#export PATH=$PATH:/home/gabor/docker-compose/bin

if [ "$1" == "deploy" ];
then
echo "deploy"
git pull
docker-compose build
docker compose build
fi

if [ "$1" == "deploy" ] || [ "$1" == "restart" ];
then
echo "restart"
docker-compose stop --time 0
docker-compose up --detach --time 0 --remove-orphans
docker compose stop --timeout 0
docker compose up --detach --timeout 0 --remove-orphans
docker image prune -f
else
echo "Usage: $0 [deploy|restart]"
Expand Down

0 comments on commit 4623aa8

Please sign in to comment.