11 lines
227 B
Bash
11 lines
227 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
stack=$(basename $(pwd))
|
||
|
|
||
|
cat HOSTS | while read host; do
|
||
|
echo "=== $host"
|
||
|
export FQDN=$host
|
||
|
export HOSTNAME=${host%%.*}
|
||
|
docker -H ssh://$host stack deploy -c docker-compose.yaml --prune $stack
|
||
|
done
|