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: services:
app: app:
image: linuxserver/heimdall:2.4.10 image: linuxserver/heimdall:${HEIMDALL_VERSION}
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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