Update docker compose syntaxe
This commit is contained in:
		| @@ -20,10 +20,10 @@ function main() { | |||||||
|  |  | ||||||
| 	for container_path in ${container_list}; do | 	for container_path in ${container_list}; do | ||||||
| 		cd "${container_path}" | 		cd "${container_path}" | ||||||
| 		if [ -f docker-compose.yml ]; then | 		if [ -f docker compose.yml ]; then | ||||||
| 			printf "Updating ${container_path} : \n" \ | 			printf "Updating ${container_path} : \n" \ | ||||||
| 			&& docker-compose pull \ | 			&& docker compose pull \ | ||||||
| 	 		&& docker-compose build --pull \ | 	 		&& docker compose build --pull \ | ||||||
| 			&& container_updated+=(${container_path}) \ | 			&& container_updated+=(${container_path}) \ | ||||||
| 			&& ok \ | 			&& ok \ | ||||||
| 			|| failed | 			|| failed | ||||||
| @@ -33,9 +33,9 @@ function main() { | |||||||
|  |  | ||||||
| 	for container_path in ${container_updated[*]}; do | 	for container_path in ${container_updated[*]}; do | ||||||
| 		cd "${container_path}" | 		cd "${container_path}" | ||||||
| 		docker-compose down \ | 		docker compose down \ | ||||||
| 		&& docker-compose stop \ | 		&& docker compose stop \ | ||||||
| 		&& docker-compose up -d | 		&& docker compose up -d | ||||||
| 		cd - &>/dev/null | 		cd - &>/dev/null | ||||||
| 	done | 	done | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user