docker compose v2

This commit is contained in:
Florian Zirker 2023-01-12 10:03:26 +01:00
parent bdefc29ce6
commit 0e1e41abfd
14 changed files with 14 additions and 28 deletions

View file

@ -1,9 +1,7 @@
version: "3.3"
services:
app:
image: linuxserver/heimdall:2.4.10
image: linuxserver/heimdall:${HEIMDALL_VERSION}
environment:
- PUID=1000
- PGID=1000

View file

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

View file

@ -1,8 +1,7 @@
version: "3.3"
services:
grafana:
image: grafana/grafana:8.1.3
image: grafana/grafana:${GRAFANA_VERSION}
restart: unless-stopped
expose:
- "3000"
@ -37,7 +36,7 @@ services:
grafanadb:
image: postgres:13
image: postgres:${POSTGRES_VERSION}
volumes:
- ${VOLUMES_PATH}/grafanadb:/var/lib/postgresql/data
networks:
@ -52,7 +51,7 @@ services:
influxdb:
image: influxdb:1.8
image: influxdb:${INFLUXDB_VERSION}
restart: unless-stopped
networks:
- web

View file

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

View file

@ -1,5 +1,3 @@
version: "3.3"
services:
cups:
@ -9,7 +7,7 @@ services:
- /var/run/dbus:/var/run/dbus
- ${VOLUMES_PATH}/cups:/etc/cups
devices:
- /dev/usblp0
- /dev/usb/lp0
privileged: true
network_mode: host
labels:
@ -19,4 +17,5 @@ services:
- "traefik.http.services.cups.loadbalancer.server.port=631"
- "docker.group=print"
restart: unless-stopped
pull_policy: build

View file

@ -1,9 +1,7 @@
version: "3.3"
services:
traefik:
image: traefik:v2.4
image: traefik:${TRAEFIK_VERSION}
restart: always
ports:
- "80:80"

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 --pull);
done
for dir in ./*/ ; do
(cd "$dir" && echo "[$dir]" && docker-compose pull);
(cd "$dir" && echo "[$dir]" && docker compose pull);
done

View file

@ -1,7 +1,7 @@
#/bin/bash/
function pull {
(cd "$1" && echo "[$1]" && docker-compose pull);
(cd "$1" && echo "[$1]" && docker compose pull);
}
pull proxy;

View file

@ -1,11 +1,10 @@
version: "3.3"
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- ${VOLUMES_PATH}/homeassistent:/config
- /run/dbus:/run/dbus:ro
environment:
- TZ=Europe/Berlin
restart: unless-stopped

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

@ -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,5 +1,5 @@
#/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.3"
services:
host:

View file

@ -1,5 +1,3 @@
version: "3.3"
services:
qbittorrent:
image: linuxserver/qbittorrent