docker compose v2

This commit is contained in:
Florian Zirker 2023-01-12 10:10:34 +01:00
parent 8eff12ea6a
commit e0a0b440f0
10 changed files with 5 additions and 16 deletions

View file

@ -1,5 +1,3 @@
version: "3"
services:
syncserver:

View file

@ -1,5 +1,3 @@
version: "3"
services:
web:

View file

@ -1,4 +1,3 @@
version: "3.3"
services:
grafana:

View file

@ -1,5 +1,3 @@
version: "3"
services:
web:

View file

@ -1,5 +1,3 @@
version: "3.3"
services:
traefik:

View file

@ -1,9 +1,9 @@
#/bin/bash/
for dir in ./*/ ; do
(cd "$dir" && echo "[$dir]" && docker-compose build);
(cd "$dir" && echo "[$dir]" && docker compose build);
done
for dir in ./*/ ; do
(cd "$dir" && echo "[$dir]" && docker-compose pull);
(cd "$dir" && echo "[$dir]" && docker compose pull);
done

View file

@ -2,7 +2,7 @@
function up {
(cd "$1" && echo "[$1]" && docker-compose up -d "${@:2}");
(cd "$1" && echo "[$1]" && docker compose up -d "${@:2}");
}
up proxy;

View file

@ -1,6 +1,6 @@
#/bin/bash/
for dir in ./*/ ; do
(cd "$dir" && echo "[$dir]" && docker-compose down);
(cd "$dir" && echo "[$dir]" && docker compose down);
done

View file

@ -1,4 +1,3 @@
version: '3'
services:
app:
image: wallabag/wallabag

View file

@ -1,5 +1,3 @@
version: "3.3"
services:
app:
@ -28,3 +26,4 @@ services:
networks:
web:
external: true