From ce70d8889315d296099df90bc927b35dd1bd9d45 Mon Sep 17 00:00:00 2001 From: L4RM4ND <21357789+l4rm4nd@users.noreply.github.com> Date: Sat, 25 Feb 2023 14:09:52 +0100 Subject: [PATCH] add env 'DOCKER_VOLUME_STORAGE' for volume path customization --- 0_skeleton/docker-compose.yml | 2 +- examples/adguard-home-sync/docker-compose.yml | 2 +- examples/adguard-home/docker-compose.yml | 4 +- examples/answer/docker-compose.yml | 2 +- examples/bitwarden-unified/docker-compose.yml | 4 +- examples/bookstack/docker-compose.yml | 4 +- examples/caddy/docker-compose.yml | 6 +-- examples/changedetection/docker-compose.yml | 2 +- examples/code-server/docker-compose.yml | 2 +- examples/dashy/docker-compose.yml | 4 +- examples/deemix/docker-compose.yml | 4 +- examples/domainmod/docker-compose.yml | 4 +- examples/drone/docker-compose.yml | 2 +- examples/droppy/docker-compose.yml | 2 +- examples/duplicacy/docker-compose.yml | 6 +-- examples/duplicati/docker-compose.yml | 4 +- examples/fail2ban/docker-compose.yml | 4 +- examples/firefly-iii/docker-compose.yml | 4 +- examples/flame/docker-compose.yml | 2 +- examples/ghost/docker-compose-rpi-arm.yml | 4 +- examples/ghost/docker-compose.yml | 4 +- examples/gitea/docker-compose.yml | 2 +- examples/gitlab-ce/docker-compose.yml | 8 +-- examples/gokapi/docker-compose.yml | 4 +- .../grafana-monitoring/docker-compose.yml | 2 +- examples/greenbone/docker-compose.yml | 6 +-- examples/heimdall/docker-compose.yml | 2 +- examples/hemmelig/docker-compose.yml | 4 +- examples/homarr/docker-compose.yml | 4 +- examples/homeassistant/docker-compose.yml | 2 +- examples/homepage/docker-compose.yml | 4 +- examples/homer/docker-compose.yml | 2 +- examples/matomo/docker-compose.yml | 6 +-- examples/mirotalk/docker-compose.yml | 4 +- examples/money-balancer/docker-compose.yml | 2 +- examples/n8n/docker-compose.yml | 4 +- examples/nextcloud/docker-compose-redis.yml | 6 +-- examples/nextcloud/docker-compose.yml | 4 +- examples/nginx-php/docker-compose.yml | 8 +-- .../docker-compose.yml | 2 +- .../nginx-proxy-manager/docker-compose.yml | 4 +- examples/obsidian-remote/docker-compose.yml | 4 +- examples/overleaf/docker-compose.yml | 6 +-- examples/paperless-ngx/docker-compose.yml | 5 +- examples/papermerge/docker-compose.yml | 6 +-- examples/photoprism/docker-compose.yml | 2 +- examples/pihole/docker-compose.yml | 4 +- examples/plausible/docker-compose.yml | 8 +-- examples/privatebin/docker-compose.yml | 8 +-- examples/projectsend/docker-compose.yml | 6 +-- examples/pwndrop/docker-compose.yml | 2 +- examples/rocketchat/docker-compose.yml | 2 +- examples/seafile/docker-compose.yml | 4 +- examples/sftpgo/docker-compose.yml | 4 +- examples/snipe-it/docker-compose.yml | 4 +- examples/sonarqube/docker-compose.yml | 6 +-- examples/speedtest-tracker/docker-compose.yml | 2 +- examples/stash/docker-compose.yml | 10 ++-- examples/tandoor/docker-compose.yml | 8 +-- examples/technitium-dns/docker-compose.yml | 2 +- examples/tor-browser/docker-compose.yml | 2 +- examples/traefik/docker-compose.yml | 4 +- examples/uptimekuma/docker-compose.yml | 2 +- examples/vaultwarden/docker-compose.yml | 8 +-- examples/watchyourlan/docker-compose.yml | 2 +- examples/wg-easy/docker-compose.yml | 2 +- examples/wikijs/docker-compose.yml | 6 +-- examples/wireguard/docker-compose.yml | 52 +++++++++---------- examples/wordpress/docker-compose.yml | 4 +- examples/youtrack/docker-compose.yml | 8 +-- 70 files changed, 167 insertions(+), 168 deletions(-) diff --git a/0_skeleton/docker-compose.yml b/0_skeleton/docker-compose.yml index 0ee9603..1b36bd4 100644 --- a/0_skeleton/docker-compose.yml +++ b/0_skeleton/docker-compose.yml @@ -13,7 +13,7 @@ services: #- /etc/localtime:/etc/localtime:ro #- /etc/timezone:/etc/timezone:ro #- /var/run/docker.sock:/var/run/docker.sock:ro - - /mnt/docker-volumes/example:/opt/example/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/example:/opt/example/data environment: - PUID=1000 - PGID=1000 diff --git a/examples/adguard-home-sync/docker-compose.yml b/examples/adguard-home-sync/docker-compose.yml index b9bc88e..14d592d 100644 --- a/examples/adguard-home-sync/docker-compose.yml +++ b/examples/adguard-home-sync/docker-compose.yml @@ -18,4 +18,4 @@ services: - PGID=1000 restart: unless-stopped volumes: - - /mnt/docker-volumes/adguard-home-sync:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/adguard-home-sync:/config diff --git a/examples/adguard-home/docker-compose.yml b/examples/adguard-home/docker-compose.yml index 49bb093..3d8f5c8 100644 --- a/examples/adguard-home/docker-compose.yml +++ b/examples/adguard-home/docker-compose.yml @@ -11,5 +11,5 @@ services: - 53:53/udp restart: unless-stopped volumes: - - /mnt/docker-volumes/adguard-home/work:/opt/adguardhome/work - - /mnt/docker-volumes/adguard-home/conf:/opt/adguardhome/conf + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/adguard-home/work:/opt/adguardhome/work + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/adguard-home/conf:/opt/adguardhome/conf diff --git a/examples/answer/docker-compose.yml b/examples/answer/docker-compose.yml index 01f6938..95c7b10 100644 --- a/examples/answer/docker-compose.yml +++ b/examples/answer/docker-compose.yml @@ -7,4 +7,4 @@ services: - '9080:80' restart: unless-stopped volumes: - - /mnt/docker-volumes/answer/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/answer/data:/data diff --git a/examples/bitwarden-unified/docker-compose.yml b/examples/bitwarden-unified/docker-compose.yml index 673eff5..cacf99e 100644 --- a/examples/bitwarden-unified/docker-compose.yml +++ b/examples/bitwarden-unified/docker-compose.yml @@ -13,7 +13,7 @@ services: ports: - "8888:8080" volumes: - - /mnt/docker-volumes/bitwarden-unified/data:/etc/bitwarden + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/data:/etc/bitwarden db: environment: @@ -25,4 +25,4 @@ services: container_name: bitwarden_unified_db restart: always volumes: - - /mnt/docker-volumes/bitwarden-unified/mariadb:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bitwarden-unified/mariadb:/var/lib/mysql diff --git a/examples/bookstack/docker-compose.yml b/examples/bookstack/docker-compose.yml index 3fc716a..0f7634d 100644 --- a/examples/bookstack/docker-compose.yml +++ b/examples/bookstack/docker-compose.yml @@ -14,7 +14,7 @@ services: - DB_PASS=USERPW1 - DB_DATABASE=bookstackapp volumes: - - /mnt/docker-volumes/bookstack/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bookstack/config:/config restart: unless-stopped ports: - 8099:80 @@ -34,5 +34,5 @@ services: - MYSQL_USER=bookstack - MYSQL_PASSWORD=USERPW1 volumes: - - /mnt/docker-volumes/bookstack/mariadb-config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/bookstack/mariadb-config:/config restart: unless-stopped diff --git a/examples/caddy/docker-compose.yml b/examples/caddy/docker-compose.yml index 5c294cc..36a7179 100644 --- a/examples/caddy/docker-compose.yml +++ b/examples/caddy/docker-compose.yml @@ -10,6 +10,6 @@ services: - "80:80" - "443:443" volumes: - - /mnt/docker-volumes/caddy/CaddyFile:/etc/caddy/Caddyfile - - /mnt/docker-volumes/caddy/data:/data - - /mnt/docker-volumes/caddy/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/caddy/CaddyFile:/etc/caddy/Caddyfile + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/caddy/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/caddy/config:/config diff --git a/examples/changedetection/docker-compose.yml b/examples/changedetection/docker-compose.yml index 165971d..cf6ab6f 100644 --- a/examples/changedetection/docker-compose.yml +++ b/examples/changedetection/docker-compose.yml @@ -8,7 +8,7 @@ services: - PGID=1000 - TZ=Europe/Berlin volumes: - - /mnt/docker-volumes/changedetection/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/changedetection/config:/config ports: - 5000:5000 restart: unless-stopped diff --git a/examples/code-server/docker-compose.yml b/examples/code-server/docker-compose.yml index 4a9bf03..ec86615 100644 --- a/examples/code-server/docker-compose.yml +++ b/examples/code-server/docker-compose.yml @@ -14,7 +14,7 @@ services: - PROXY_DOMAIN=vscode.example.com #optional - DEFAULT_WORKSPACE=/config/workspace #optional volumes: - - /mnt/docker-volumes/vscode/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vscode/config:/config ports: - 8443:8443 restart: unless-stopped diff --git a/examples/dashy/docker-compose.yml b/examples/dashy/docker-compose.yml index 58bdd29..674c7f2 100644 --- a/examples/dashy/docker-compose.yml +++ b/examples/dashy/docker-compose.yml @@ -6,8 +6,8 @@ services: hostname: dashy image: lissy93/dashy volumes: - - /mnt/docker-volumes/dashy/config/config.yml:/app/public/conf.yml - - /mnt/docker-volumes/dashy/icons:/app/public/item-icons + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/dashy/config/config.yml:/app/public/conf.yml + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/dashy/icons:/app/public/item-icons environment: - NODE_ENV=production - UID=1000 diff --git a/examples/deemix/docker-compose.yml b/examples/deemix/docker-compose.yml index 27ceafe..5773ad6 100644 --- a/examples/deemix/docker-compose.yml +++ b/examples/deemix/docker-compose.yml @@ -10,5 +10,5 @@ services: image: registry.gitlab.com/bockiii/deemix-docker:latest restart: unless-stopped volumes: - - /mnt/docker-volumes/deemix/config:/config - - /mnt/docker-volumes/deemix/downloads:/downloads + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/deemix/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/deemix/downloads:/downloads diff --git a/examples/domainmod/docker-compose.yml b/examples/domainmod/docker-compose.yml index 8b6a1ec..5fc5c7d 100644 --- a/examples/domainmod/docker-compose.yml +++ b/examples/domainmod/docker-compose.yml @@ -17,7 +17,7 @@ services: - DOMAINMOD_USER=domainmod - DOMAINMOD_PASSWORD=password1 volumes: - - /mnt/docker-volumes/domainmod/app:/var/www/html + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/domainmod/app:/var/www/html ports: - 8080:80 restart: unless-stopped @@ -34,7 +34,7 @@ services: - MYSQL_PASSWORD=password1 - MYSQL_ROOT_PASSWORD=password2 volumes: - - /mnt/docker-volumes/domainmod/database:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/domainmod/database:/config #ports: # - 3306 restart: unless-stopped diff --git a/examples/drone/docker-compose.yml b/examples/drone/docker-compose.yml index ebcc3df..f251cc2 100644 --- a/examples/drone/docker-compose.yml +++ b/examples/drone/docker-compose.yml @@ -8,7 +8,7 @@ services: dns: - 192.168.178.100 # specify your internal dns server for proper dns lookups; especially if you are using https and hostnames volumes: - - /mnt/docker-volumes/drone/data:/var/lib/drone + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/drone/data:/var/lib/drone #- /var/run/docker.sock:/var/run/docker.sock:ro environment: - DRONE_DEBUG=true diff --git a/examples/droppy/docker-compose.yml b/examples/droppy/docker-compose.yml index 1ff057d..11701a0 100644 --- a/examples/droppy/docker-compose.yml +++ b/examples/droppy/docker-compose.yml @@ -7,7 +7,7 @@ services: ports: - 8989:8989 volumes: - - /mnt/docker-volumes/droppy/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/droppy/config:/config - /path/to/my/data/for/sharing:/files # path to shared files environment: - UID=1000 diff --git a/examples/duplicacy/docker-compose.yml b/examples/duplicacy/docker-compose.yml index 137bbb7..be355b8 100644 --- a/examples/duplicacy/docker-compose.yml +++ b/examples/duplicacy/docker-compose.yml @@ -14,8 +14,8 @@ services: ports: - "3875:3875/tcp" volumes: - - /mnt/docker-volumes/duplicacy-web/config:/config - - /mnt/docker-volumes/duplicacy-web/logs:/logs - - /mnt/docker-volumes/duplicacy-web/cache:/cache + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/duplicacy-web/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/duplicacy-web/logs:/logs + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/duplicacy-web/cache:/cache - /path/to/my/data/dir1:/data/dir1:ro # 1st path to your data for backup - /path/to/my/data/dir2:/data/dir2:ro # 2nd path to your data for backup diff --git a/examples/duplicati/docker-compose.yml b/examples/duplicati/docker-compose.yml index 463e8dd..9440ebf 100644 --- a/examples/duplicati/docker-compose.yml +++ b/examples/duplicati/docker-compose.yml @@ -23,6 +23,6 @@ services: # - traefik.http.routers.duplicati.middlewares=local-ipwhitelist@file restart: unless-stopped volumes: - - /mnt/docker-volumes/duplicati/backups:/backups - - /mnt/docker-volumes/duplicati/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/duplicati/backups:/backups + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/duplicati/config:/config - /path/to/my/data/to/backup:/source # change this diff --git a/examples/fail2ban/docker-compose.yml b/examples/fail2ban/docker-compose.yml index fcaf19a..cc04635 100644 --- a/examples/fail2ban/docker-compose.yml +++ b/examples/fail2ban/docker-compose.yml @@ -13,6 +13,6 @@ services: network_mode: host restart: unless-stopped volumes: - - /mnt/docker-volumes/fail2Ban/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/fail2Ban/data:/data - /path/to/my/logs/to/monitor:/var/log - #- /mnt/docker-volumes/traefik/logs:/var/log/traefik + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik diff --git a/examples/firefly-iii/docker-compose.yml b/examples/firefly-iii/docker-compose.yml index 9ea0993..4b8567f 100644 --- a/examples/firefly-iii/docker-compose.yml +++ b/examples/firefly-iii/docker-compose.yml @@ -6,7 +6,7 @@ services: container_name: firefly restart: unless-stopped volumes: - - /mnt/docker-volumes/firefly/upload:/var/www/html/storage/upload + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/firefly/upload:/var/www/html/storage/upload env_file: .env ports: - 80:8080 @@ -23,4 +23,4 @@ services: - MYSQL_PASSWORD=MySecretDatabasePassword # if changed --> also update in .env file - MYSQL_DATABASE=firefly volumes: - - /mnt/docker-volumes/firefly/mysql:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/firefly/mysql:/var/lib/mysql diff --git a/examples/flame/docker-compose.yml b/examples/flame/docker-compose.yml index a6d900c..debd47e 100644 --- a/examples/flame/docker-compose.yml +++ b/examples/flame/docker-compose.yml @@ -5,7 +5,7 @@ services: image: pawelmalak/flame container_name: flame volumes: - - /mnt/docker-volumes/flame:/app/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/flame:/app/data #- /var/run/docker.sock:/var/run/docker.sock # optional but required for Docker integration ports: - 5005:5005 diff --git a/examples/ghost/docker-compose-rpi-arm.yml b/examples/ghost/docker-compose-rpi-arm.yml index c7861d1..87d2576 100644 --- a/examples/ghost/docker-compose-rpi-arm.yml +++ b/examples/ghost/docker-compose-rpi-arm.yml @@ -8,7 +8,7 @@ services: ports: - 8080:2368 volumes: - - /mnt/docker-volumes/ghost/content:/var/lib/ghost/content + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content environment: # see https://ghost.org/docs/config/#configuration-options database__client: mysql @@ -37,5 +37,5 @@ services: - MYSQL_USER=ghost_dbuser - MYSQL_PASSWORD=SecureDatabasePassword volumes: - - /mnt/docker-volumes/ghost/mariadb/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mariadb/config:/config restart: unless-stopped diff --git a/examples/ghost/docker-compose.yml b/examples/ghost/docker-compose.yml index 2363c00..ccd50bf 100644 --- a/examples/ghost/docker-compose.yml +++ b/examples/ghost/docker-compose.yml @@ -8,7 +8,7 @@ services: ports: - 8080:2368 volumes: - - /mnt/docker-volumes/ghost/content:/var/lib/ghost/content + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/content:/var/lib/ghost/content environment: # see https://ghost.org/docs/config/#configuration-options database__client: mysql @@ -37,7 +37,7 @@ services: container_name: ghost_db restart: always volumes: - - /mnt/docker-volumes/ghost/mysql:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/ghost/mysql:/var/lib/mysql #ports: # - "13928:3306" environment: diff --git a/examples/gitea/docker-compose.yml b/examples/gitea/docker-compose.yml index c71440c..cfb5bd7 100644 --- a/examples/gitea/docker-compose.yml +++ b/examples/gitea/docker-compose.yml @@ -13,7 +13,7 @@ services: image: gitea/gitea:latest restart: unless-stopped volumes: - - /mnt/docker-volumes/gitea/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitea/data:/data #labels: # - traefik.enable=true # - traefik.http.routers.gitea.rule=Host(`git.example.com`) diff --git a/examples/gitlab-ce/docker-compose.yml b/examples/gitlab-ce/docker-compose.yml index 3d03cb7..910d397 100644 --- a/examples/gitlab-ce/docker-compose.yml +++ b/examples/gitlab-ce/docker-compose.yml @@ -12,9 +12,9 @@ services: - 8434:443 # HTTPS - 2222:22 # SSH volumes: - - /mnt/docker-volumes/gitlab/config:/etc/gitlab - - /mnt/docker-volumes/gitlab/logs:/var/log/gitlab - - /mnt/docker-volumes/gitlab/data:/var/opt/gitlab + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/config:/etc/gitlab + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/logs:/var/log/gitlab + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/data:/var/opt/gitlab gitlab-runner: image: gitlab/gitlab-runner:alpine @@ -24,4 +24,4 @@ services: - gitlab-ce volumes: - /var/run/docker.sock:/var/run/docker.sock - - /mnt/docker-volumes/gitlab/runner:/etc/gitlab-runner + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gitlab/runner:/etc/gitlab-runner diff --git a/examples/gokapi/docker-compose.yml b/examples/gokapi/docker-compose.yml index 2bdc741..15094b7 100644 --- a/examples/gokapi/docker-compose.yml +++ b/examples/gokapi/docker-compose.yml @@ -8,5 +8,5 @@ services: ports: - 53842:53842 volumes: - - /mnt/docker-volumes/gokapi/data:/app/data - - /mnt/docker-volumes/gokapi/config:/app/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gokapi/data:/app/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/gokapi/config:/app/config diff --git a/examples/grafana-monitoring/docker-compose.yml b/examples/grafana-monitoring/docker-compose.yml index ac47f30..c7c6cad 100644 --- a/examples/grafana-monitoring/docker-compose.yml +++ b/examples/grafana-monitoring/docker-compose.yml @@ -25,7 +25,7 @@ services: volumes: - /var/log:/var/log:ro # let promtail access the docker host's log files - ./volume-data/promtail:/etc/promtail # place promtail-config.yml - #- /mnt/docker-volumes/traefik/logs:/var/log/traefik # let promtail access your traefik reverse logs + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik # let promtail access your traefik reverse logs restart: unless-stopped command: -config.file=/etc/promtail/promtail-config.yml #networks: diff --git a/examples/greenbone/docker-compose.yml b/examples/greenbone/docker-compose.yml index 366e1a4..dc2efe9 100644 --- a/examples/greenbone/docker-compose.yml +++ b/examples/greenbone/docker-compose.yml @@ -3,9 +3,9 @@ services: gvm: image: securecompliance/gvm volumes: - - /mnt/docker-volumes/greenbone/database:/opt/database - - /mnt/docker-volumes/greenbone/gvm:/var/lib/gvm - - /mnt/docker-volumes/greenbone/plugins:/var/lib/openvas/plugins + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/greenbone/database:/opt/database + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/greenbone/gvm:/var/lib/gvm + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/greenbone/plugins:/var/lib/openvas/plugins environment: - USERNAME="admin" - PASSWORD="admin" diff --git a/examples/heimdall/docker-compose.yml b/examples/heimdall/docker-compose.yml index 4b2fd28..439a56b 100644 --- a/examples/heimdall/docker-compose.yml +++ b/examples/heimdall/docker-compose.yml @@ -13,4 +13,4 @@ services: image: linuxserver/heimdall:latest restart: unless-stopped volumes: - - /mnt/docker-volumes/heimdall:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/heimdall:/config diff --git a/examples/hemmelig/docker-compose.yml b/examples/hemmelig/docker-compose.yml index 3e34a56..76e8dd0 100644 --- a/examples/hemmelig/docker-compose.yml +++ b/examples/hemmelig/docker-compose.yml @@ -5,7 +5,7 @@ services: hostname: hemmelig init: true volumes: - - /mnt/docker-volumes/hemmelig/files:/var/tmp/hemmelig/upload/files + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/hemmelig/files:/var/tmp/hemmelig/upload/files environment: - SECRET_REDIS_HOST=hemmelig-redis # Override this for your redis host address - SECRET_LOCAL_HOSTNAME=0.0.0.0 # The local hostname for the fastify instance @@ -42,7 +42,7 @@ services: init: true # Enable to make redis data persistent volumes: - - /mnt/docker-volumes/hemmelig/redis/:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/hemmelig/redis/:/data command: redis-server --appendonly yes restart: always stop_grace_period: 1m diff --git a/examples/homarr/docker-compose.yml b/examples/homarr/docker-compose.yml index 5d7d236..d515c85 100644 --- a/examples/homarr/docker-compose.yml +++ b/examples/homarr/docker-compose.yml @@ -8,7 +8,7 @@ services: - PASSWORD=MySecureLoginPassword - TZ="Europe/Berlin" volumes: - - /mnt/docker-volumes/homarr/configs:/app/data/configs - #- /mnt/docker-volumes/homarr/icons:/app/public/icons # optional for custom icons + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homarr/configs:/app/data/configs + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homarr/icons:/app/public/icons # optional for custom icons ports: - '7575:7575' diff --git a/examples/homeassistant/docker-compose.yml b/examples/homeassistant/docker-compose.yml index 4d8592c..507d5a2 100644 --- a/examples/homeassistant/docker-compose.yml +++ b/examples/homeassistant/docker-compose.yml @@ -10,7 +10,7 @@ services: - PGID=1000 - TZ=Europe/Berlin volumes: - - /mnt/docker-volumes/homeassistant/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homeassistant/config:/config #ports: # - 8123:8123 #optional #devices: diff --git a/examples/homepage/docker-compose.yml b/examples/homepage/docker-compose.yml index 7aa83b1..2d2625c 100644 --- a/examples/homepage/docker-compose.yml +++ b/examples/homepage/docker-compose.yml @@ -10,8 +10,8 @@ services: - PUID=1000 - PGID=1000 volumes: - - /mnt/docker-volumes/homepage/config:/app/config # Make sure your local config directory exists - - /mnt/docker-volumes/homepage/icons:/app/public/icons + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homepage/config:/app/config # Make sure your local config directory exists + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homepage/icons:/app/public/icons # - /var/run/docker.sock:/var/run/docker.sock:ro # (optional) For docker integrations #labels: # - traefik.enable=true diff --git a/examples/homer/docker-compose.yml b/examples/homer/docker-compose.yml index 222577a..df561d3 100644 --- a/examples/homer/docker-compose.yml +++ b/examples/homer/docker-compose.yml @@ -5,7 +5,7 @@ services: image: b4bz/homer:latest container_name: homer volumes: - - /mnt/docker-volumes/homer:/www/assets + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/homer:/www/assets restart: unless-stopped environment: - UID=1000 diff --git a/examples/matomo/docker-compose.yml b/examples/matomo/docker-compose.yml index 8496675..4a27969 100644 --- a/examples/matomo/docker-compose.yml +++ b/examples/matomo/docker-compose.yml @@ -7,8 +7,8 @@ services: ports: - 8099:80 volumes: - - /mnt/docker-volumes/matomo/apache/apache2.conf:/etc/apache2/apache2.conf:ro - - /mnt/docker-volumes/matomo/html:/var/www/html + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/apache/apache2.conf:/etc/apache2/apache2.conf:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/html:/var/www/html environment: - MATOMO_DATABASE_HOST=matomo_db #- VIRTUAL_HOST=matomo.example.com @@ -38,4 +38,4 @@ services: - ./db.env restart: unless-stopped volumes: - - /mnt/docker-volumes/matomo/database:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/matomo/database:/var/lib/mysql diff --git a/examples/mirotalk/docker-compose.yml b/examples/mirotalk/docker-compose.yml index d839c48..857a721 100644 --- a/examples/mirotalk/docker-compose.yml +++ b/examples/mirotalk/docker-compose.yml @@ -13,8 +13,8 @@ services: - 3000:3000 # WEB UI; volumes: - .env:/src/.env:ro - - /mnt/docker-volumes/mirotalk/app:/src/app:ro - - /mnt/docker-volumes/mirotalk/public:/src/public:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/mirotalk/app:/src/app:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/mirotalk/public:/src/public:ro #labels: #- traefik.enable=true #- traefik.http.routers.mirotalk.rule=Host(`meet.example.com`) # pls adjust diff --git a/examples/money-balancer/docker-compose.yml b/examples/money-balancer/docker-compose.yml index 34c2c0a..d40a373 100644 --- a/examples/money-balancer/docker-compose.yml +++ b/examples/money-balancer/docker-compose.yml @@ -7,6 +7,6 @@ services: ports: - 8000:8000 volumes: - - /mnt/docker-volumes/money-balancer/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/money-balancer/data:/data environment: - JWT_SECRET=ThisIsAVerySecretString # change this diff --git a/examples/n8n/docker-compose.yml b/examples/n8n/docker-compose.yml index 820a82e..608fe0e 100644 --- a/examples/n8n/docker-compose.yml +++ b/examples/n8n/docker-compose.yml @@ -13,7 +13,7 @@ services: - MARIADB_PASSWORD - MARIADB_MYSQL_LOCALHOST_USER=true volumes: - - /mnt/docker-volumes/n8n/database:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/n8n/database:/var/lib/mysql healthcheck: test: "/usr/bin/mysql --user=${MARIADB_USER} --password=${MARIADB_PASSWORD} --execute 'SELECT 1;'" interval: 10s @@ -36,7 +36,7 @@ services: links: - n8n-db volumes: - - /mnt/docker-volumes/n8n/storage:/home/node/.n8n + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/n8n/storage:/home/node/.n8n command: n8n start --tunnel depends_on: n8n-db: diff --git a/examples/nextcloud/docker-compose-redis.yml b/examples/nextcloud/docker-compose-redis.yml index 1d55814..e5ea5d1 100644 --- a/examples/nextcloud/docker-compose-redis.yml +++ b/examples/nextcloud/docker-compose-redis.yml @@ -9,7 +9,7 @@ services: volumes: - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro - - /mnt/docker-volumes/nextcloud/database:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/database:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=test #SQL root Passwort eingeben - MYSQL_PASSWORD=nextcloud #SQL Benutzer Passwort eingeben @@ -44,8 +44,8 @@ services: REDIS_HOST: nextcloud-redis REDIS_HOST_PASSWORD: nextcloud # Redis Passwort von oben wieder eingeben volumes: - - /mnt/docker-volumes/nextcloud/data:/var/www/html/data - - /mnt/docker-volumes/nextcloud/app:/var/www/html + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/data:/var/www/html/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/app:/var/www/html #labels: # - traefik.enable=true # - traefik.http.routers.nextcloud.rule=(Host(`cloud.example.com`)) # pls change diff --git a/examples/nextcloud/docker-compose.yml b/examples/nextcloud/docker-compose.yml index a562956..6fa7823 100644 --- a/examples/nextcloud/docker-compose.yml +++ b/examples/nextcloud/docker-compose.yml @@ -9,8 +9,8 @@ services: - PGID=1000 - TZ=Europe/Berlin volumes: - - /mnt/docker-volumes/nextcloud/config:/config - - /mnt/docker-volumes/nextcloud/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nextcloud/data:/data ports: - 9443:443 restart: unless-stopped diff --git a/examples/nginx-php/docker-compose.yml b/examples/nginx-php/docker-compose.yml index 4bd8835..c63aaef 100644 --- a/examples/nginx-php/docker-compose.yml +++ b/examples/nginx-php/docker-compose.yml @@ -5,9 +5,9 @@ services: image: nginx:latest hostname: nginx volumes: - - /mnt/docker-volumes/nginx/www-data:/var/www - - /mnt/docker-volumes/nginx/nginx-conf:/etc/nginx/conf.d - - /mnt/docker-volumes/nginx/logs:/var/log/nginx + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/nginx-conf:/etc/nginx/conf.d + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/logs:/var/log/nginx links: - php container_name: nginx @@ -23,7 +23,7 @@ services: image: php:8-fpm-alpine hostname: php volumes: - - /mnt/docker-volumes/nginx/www-data:/var/www + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx/www-data:/var/www container_name: php restart: unless-stopped working_dir: /var/www diff --git a/examples/nginx-proxy-manager-goaccess/docker-compose.yml b/examples/nginx-proxy-manager-goaccess/docker-compose.yml index 8e9ca2c..ce56da4 100644 --- a/examples/nginx-proxy-manager-goaccess/docker-compose.yml +++ b/examples/nginx-proxy-manager-goaccess/docker-compose.yml @@ -3,7 +3,7 @@ goaccess: container_name: goaccess restart: always volumes: - - /mnt/docker-volumes/nginx-proxy-manager/data/logs:/opt/log:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx-proxy-manager/data/logs:/opt/log:ro environment: - PUID=1000 - PGID=1000 diff --git a/examples/nginx-proxy-manager/docker-compose.yml b/examples/nginx-proxy-manager/docker-compose.yml index 1a7f60a..a45cbf4 100644 --- a/examples/nginx-proxy-manager/docker-compose.yml +++ b/examples/nginx-proxy-manager/docker-compose.yml @@ -20,8 +20,8 @@ services: interval: 30s timeout: 3s volumes: - - /mnt/docker-volumes/nginx-proxy-manager/data:/data - - /mnt/docker-volumes/nginx-proxy-manager/letsencrypt:/etc/letsencrypt + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx-proxy-manager/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/nginx-proxy-manager/letsencrypt:/etc/letsencrypt networks: npm_proxy: diff --git a/examples/obsidian-remote/docker-compose.yml b/examples/obsidian-remote/docker-compose.yml index 1783fb4..875e407 100644 --- a/examples/obsidian-remote/docker-compose.yml +++ b/examples/obsidian-remote/docker-compose.yml @@ -9,8 +9,8 @@ services: #- 27123:27123 # Local REST API Plugin HTTP Server Port #- 27124:27124 # Local REST API Plugin HTTPS Server Port volumes: - - /mnt/docker-volumes/obsidian-remote/vaults:/vaults # The location on the host for your Obsidian Vaults - - /mnt/docker-volumes/obsidian-remote/config:/config # The location to store Obsidan configuration and ssh data for obsidian-git + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/obsidian-remote/vaults:/vaults # The location on the host for your Obsidian Vaults + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/obsidian-remote/config:/config # The location to store Obsidan configuration and ssh data for obsidian-git environment: - PUID=1000 - PGID=1000 diff --git a/examples/overleaf/docker-compose.yml b/examples/overleaf/docker-compose.yml index d282901..3e5d0e4 100644 --- a/examples/overleaf/docker-compose.yml +++ b/examples/overleaf/docker-compose.yml @@ -15,7 +15,7 @@ services: - mongo - redis volumes: - - /mnt/docker-volumes/sharelatex/data:/var/lib/sharelatex + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/data:/var/lib/sharelatex ######################################################################## #### Server Pro: Uncomment the following line to mount the docker #### #### socket, required for Sibling Containers to work #### @@ -105,7 +105,7 @@ services: expose: - 27017 volumes: - - /mnt/docker-volumes/sharelatex/mongo:/data/db + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/mongo:/data/db healthcheck: test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet interval: 10s @@ -119,4 +119,4 @@ services: expose: - 6379 volumes: - - /mnt/docker-volumes/sharelatex/redis:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sharelatex/redis:/data diff --git a/examples/paperless-ngx/docker-compose.yml b/examples/paperless-ngx/docker-compose.yml index 854bbba..4e58a79 100644 --- a/examples/paperless-ngx/docker-compose.yml +++ b/examples/paperless-ngx/docker-compose.yml @@ -1,4 +1,3 @@ ---- version: "2.1" services: paperless-ngx: @@ -11,8 +10,8 @@ services: #- PAPERLESS_URL=https://docs.example.com # uncomment and adjust if behind reverse proxy #- REDIS_URL= #optional volumes: - - /mnt/docker-volumes/paperless-ngx/config:/config - - /mnt/docker-volumes/paperless-ngx/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/paperless-ngx/data:/data ports: - 8000:8000 restart: unless-stopped diff --git a/examples/papermerge/docker-compose.yml b/examples/papermerge/docker-compose.yml index 1ae5fcb..2aaa9e0 100644 --- a/examples/papermerge/docker-compose.yml +++ b/examples/papermerge/docker-compose.yml @@ -11,6 +11,6 @@ services: image: linuxserver/papermerge:latest restart: unless-stopped volumes: - - /mnt/docker-volumes/papermerge/importer_dir:/mnt/media/importer_dir - - /mnt/docker-volumes/papermerge/config:/config - - /mnt/docker-volumes/papermerge/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/importer_dir:/mnt/media/importer_dir + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/papermerge/data:/data diff --git a/examples/photoprism/docker-compose.yml b/examples/photoprism/docker-compose.yml index ec0a374..77ed7cd 100644 --- a/examples/photoprism/docker-compose.yml +++ b/examples/photoprism/docker-compose.yml @@ -18,4 +18,4 @@ services: restart: unless-stopped volumes: - /path/to/my/locally/stored/media/files:/photoprism/originals - - /mnt/docker-volumes/photoprism/storage:/photoprism/storage + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/photoprism/storage:/photoprism/storage diff --git a/examples/pihole/docker-compose.yml b/examples/pihole/docker-compose.yml index fb053b7..0904214 100644 --- a/examples/pihole/docker-compose.yml +++ b/examples/pihole/docker-compose.yml @@ -16,8 +16,8 @@ services: WEBPASSWORD: 'MySecureLoginPasswordForWebApp' # Volumes store your data between container upgrades volumes: - - '/mnt/docker-volumes/pihole/data:/etc/pihole' - - '/mnt/docker-volumes/pihole/dnsmasq:/etc/dnsmasq.d' + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/pihole/data:/etc/pihole + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/pihole/dnsmasq:/etc/dnsmasq.d # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities cap_add: - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed diff --git a/examples/plausible/docker-compose.yml b/examples/plausible/docker-compose.yml index b9445c0..96c17b5 100644 --- a/examples/plausible/docker-compose.yml +++ b/examples/plausible/docker-compose.yml @@ -11,7 +11,7 @@ services: restart: always container_name: plausible-db volumes: - - /mnt/docker-volumes/plausible/database/:/var/lib/postgresql/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data environment: - POSTGRES_PASSWORD=postgres @@ -20,9 +20,9 @@ services: image: clickhouse/clickhouse-server:22.6-alpine restart: always volumes: - - /mnt/docker-volumes/plausible/event-data:/var/lib/clickhouse - - /mnt/docker-volumes/plausible/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro - - /mnt/docker-volumes/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-data:/var/lib/clickhouse + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro ulimits: nofile: soft: 262144 diff --git a/examples/privatebin/docker-compose.yml b/examples/privatebin/docker-compose.yml index 33ba783..9f154d6 100644 --- a/examples/privatebin/docker-compose.yml +++ b/examples/privatebin/docker-compose.yml @@ -9,10 +9,10 @@ services: ports: - 8080:8080 volumes: - - '/mnt/docker-volumes/privatebin/data:/srv/data' # volume for persisted data pastes - - '/mnt/docker-volumes/privatebin/configs/config.php:/srv/cfg/conf.php:ro' # volume for custom privatebin config - #- '/mnt/docker-volumes/privatebin/configs/nginx.conf:/etc/nginx/nginx.conf:ro' # custom nginx container config to increase file upload size - #- '/mnt/docker-volumes/privatebin/configs/php.ini:/etc/php81/conf.d/00-docker.ini:ro' # custom php container config to increase file upload size + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/data:/srv/data # volume for persisted data pastes + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/config.php:/srv/cfg/conf.php:ro # volume for custom privatebin config + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/nginx.conf:/etc/nginx/nginx.conf:ro # custom nginx container config to increase file upload size + #- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/privatebin/configs/php.ini:/etc/php81/conf.d/00-docker.ini:ro # custom php container config to increase file upload size restart: always #labels: # - traefik.enable=true diff --git a/examples/projectsend/docker-compose.yml b/examples/projectsend/docker-compose.yml index 781e104..9ce6de6 100644 --- a/examples/projectsend/docker-compose.yml +++ b/examples/projectsend/docker-compose.yml @@ -9,8 +9,8 @@ services: - TZ=Europe/Berlin - MAX_UPLOAD=5000 volumes: - - /mnt/docker-volumes/projectsend/config:/config - - /mnt/docker-volumes/projectsend/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/projectsend/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/projectsend/data:/data ports: - 8080:80 # WEB UI restart: unless-stopped @@ -23,7 +23,7 @@ services: command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: unless-stopped volumes: - - /mnt/docker-volumes/projectsend/database:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/projectsend/database:/var/lib/mysql environment: # the projectsend setup ui will ask for a database hostname; specify "database", as this is the container hostname - MYSQL_DATABASE=projectsend # use this name during projectsend database setup diff --git a/examples/pwndrop/docker-compose.yml b/examples/pwndrop/docker-compose.yml index fd5f344..3aac945 100644 --- a/examples/pwndrop/docker-compose.yml +++ b/examples/pwndrop/docker-compose.yml @@ -12,4 +12,4 @@ services: restart: unless-stopped volumes: - /etc/localtime:/etc/localtime:ro - - /mnt/docker-volumes/pwndrop/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/pwndrop/config:/config diff --git a/examples/rocketchat/docker-compose.yml b/examples/rocketchat/docker-compose.yml index 207636d..c00a07a 100644 --- a/examples/rocketchat/docker-compose.yml +++ b/examples/rocketchat/docker-compose.yml @@ -35,7 +35,7 @@ services: image: docker.io/bitnami/mongodb:${MONGODB_VERSION:-4.4} restart: unless-stopped volumes: - - /mnt/docker-volumes/rocketchat/mongodb:/bitnami/mongodb + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/rocketchat/mongodb:/bitnami/mongodb environment: MONGODB_REPLICA_SET_MODE: primary MONGODB_REPLICA_SET_NAME: ${MONGODB_REPLICA_SET_NAME:-rs0} diff --git a/examples/seafile/docker-compose.yml b/examples/seafile/docker-compose.yml index 2a10e43..0d08d7d 100644 --- a/examples/seafile/docker-compose.yml +++ b/examples/seafile/docker-compose.yml @@ -8,7 +8,7 @@ services: - MYSQL_LOG_CONSOLE=true restart: unless-stopped volumes: - - /mnt/docker-volumes/seafile/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store. + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/seafile/db:/var/lib/mysql # Requested, specifies the path to MySQL data persistent store. memcached: image: memcached:1.6 @@ -24,7 +24,7 @@ services: - "7780:80" # HTTP - "7443:443" # HTTPS volumes: - - /mnt/docker-volumes/seafile/data:/shared # Requested, specifies the path to Seafile data persistent store. + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/seafile/data:/shared # Requested, specifies the path to Seafile data persistent store. environment: - DB_HOST=db - DB_ROOT_PASSWD=db_dev # Requested, the value shuold be root's password of MySQL service. diff --git a/examples/sftpgo/docker-compose.yml b/examples/sftpgo/docker-compose.yml index 9f42f35..9f9d1fa 100644 --- a/examples/sftpgo/docker-compose.yml +++ b/examples/sftpgo/docker-compose.yml @@ -22,7 +22,7 @@ services: SFTPGO_COMMON_DEFENDER__THRESHOLD: 5 SFTPGO_COMMON_DEFENDER__OBSERVATION_TIME: 15 volumes: - - /mnt/docker-volumes/sftpgo/data:/srv/sftpgo + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sftpgo/data:/srv/sftpgo mysql: image: mysql:latest restart: always @@ -32,4 +32,4 @@ services: MYSQL_PASSWORD: sftpgo # please change MYSQL_ROOT_PASSWORD: MySecureRootDatabasePassword volumes: - - /mnt/docker-volumes/sftpgo/mysql:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sftpgo/mysql:/var/lib/mysql diff --git a/examples/snipe-it/docker-compose.yml b/examples/snipe-it/docker-compose.yml index 4c784a2..44270eb 100644 --- a/examples/snipe-it/docker-compose.yml +++ b/examples/snipe-it/docker-compose.yml @@ -15,7 +15,7 @@ services: - MYSQL_PASSWORD=VeryStrongDatabasePassword - TZ=Europe/Berlin volumes: - - /mnt/docker-volumes/snipeit/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/snipeit/config:/config ports: - 8080:80 restart: unless-stopped @@ -32,5 +32,5 @@ services: - MYSQL_USER=snipeit - MYSQL_PASSWORD=VeryStrongDatabasePassword # change this volumes: - - /mnt/docker-volumes/snipeit/mariadb:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/snipeit/mariadb:/config restart: unless-stopped diff --git a/examples/sonarqube/docker-compose.yml b/examples/sonarqube/docker-compose.yml index 566e826..4ee7923 100644 --- a/examples/sonarqube/docker-compose.yml +++ b/examples/sonarqube/docker-compose.yml @@ -11,9 +11,9 @@ services: - sonar.jdbc.password=sonar - sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false volumes: - - /mnt/docker-volumes/sonarqube/logs:/opt/sonarqube/logs - - /mnt/docker-volumes/sonarqube/data:/opt/sonarqube/data - - /mnt/docker-volumes/sonarqube/extensions:/opt/sonarqube/extensions + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/logs:/opt/sonarqube/logs + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/data:/opt/sonarqube/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/extensions:/opt/sonarqube/extensions db: image: postgres:13.1 diff --git a/examples/speedtest-tracker/docker-compose.yml b/examples/speedtest-tracker/docker-compose.yml index 9298c6e..30fadbb 100644 --- a/examples/speedtest-tracker/docker-compose.yml +++ b/examples/speedtest-tracker/docker-compose.yml @@ -6,7 +6,7 @@ services: ports: - 8765:80 volumes: - - /mnt/docker-volumes/speedtest-tracker/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/speedtest-tracker/config:/config environment: - TZ=Europe/Berlin - PGID=1000 diff --git a/examples/stash/docker-compose.yml b/examples/stash/docker-compose.yml index da1870d..e305b5d 100644 --- a/examples/stash/docker-compose.yml +++ b/examples/stash/docker-compose.yml @@ -27,15 +27,15 @@ services: volumes: - /etc/localtime:/etc/localtime:ro ## Keep configs, scrapers, and plugins here. - - /mnt/docker-volumes/stash/config:/root/.stash + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/config:/root/.stash ## Point this at your collection. - - /mnt/docker-volumes/stash/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/data:/data ## This is where your stash's metadata lives - - /mnt/docker-volumes/stash/metadata:/metadata + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/metadata:/metadata ## Any other cache content. - - /mnt/docker-volumes/stash/cache:/cache + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/cache:/cache ## Where to store generated content (screenshots,previews,transcodes,sprites) - - /mnt/docker-volumes/stash/generated:/generated + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/stash/generated:/generated #labels: # - traefik.enable=true # - traefik.http.routers.stash.rule=Host(`stash.example.com`) diff --git a/examples/tandoor/docker-compose.yml b/examples/tandoor/docker-compose.yml index 8192929..60209d7 100644 --- a/examples/tandoor/docker-compose.yml +++ b/examples/tandoor/docker-compose.yml @@ -5,7 +5,7 @@ services: container_name: tandoor_db image: postgres:11-alpine volumes: - - /mnt/docker-volumes/tandoor/postgresql:/var/lib/postgresql/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/postgresql:/var/lib/postgresql/data env_file: - ./.env @@ -18,9 +18,9 @@ services: env_file: - ./.env volumes: - - /mnt/docker-volumes/tandoor/staticfiles:/opt/recipes/staticfiles - - /mnt/docker-volumes/tandoor/nginx_config:/opt/recipes/nginx/conf.d - - /mnt/docker-volumes/tandoor/mediafiles:/opt/recipes/mediafiles + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/staticfiles:/opt/recipes/staticfiles + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/nginx_config:/opt/recipes/nginx/conf.d + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/tandoor/mediafiles:/opt/recipes/mediafiles depends_on: - db_recipes labels: diff --git a/examples/technitium-dns/docker-compose.yml b/examples/technitium-dns/docker-compose.yml index ee5b1ae..3bfb292 100644 --- a/examples/technitium-dns/docker-compose.yml +++ b/examples/technitium-dns/docker-compose.yml @@ -31,7 +31,7 @@ services: # - DNS_SERVER_FORWARDERS=1.1.1.1, 8.8.8.8 #Comma separated list of forwarder addresses. # - DNS_SERVER_FORWARDER_PROTOCOL=Tcp #Forwarder protocol options: Udp, Tcp, Tls, Https, HttpsJson. volumes: - - /mnt/docker-volumes/technitium/config:/etc/dns/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/technitium/config:/etc/dns/config restart: unless-stopped labels: - traefik.enable=true diff --git a/examples/tor-browser/docker-compose.yml b/examples/tor-browser/docker-compose.yml index bb4c168..43156bd 100644 --- a/examples/tor-browser/docker-compose.yml +++ b/examples/tor-browser/docker-compose.yml @@ -11,4 +11,4 @@ services: #- KEEP_APP_RUNNING=0 # default; optional - TZ=Europe/Berlin #volumes: - # - /mnt/docker-volumes/torbrowser/data:/app/Browser/TorBrowser/Data/Tor # optional, just to speed up container recreation + # - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/torbrowser/data:/app/Browser/TorBrowser/Data/Tor # optional, just to speed up container recreation diff --git a/examples/traefik/docker-compose.yml b/examples/traefik/docker-compose.yml index 77dd004..c7263f7 100644 --- a/examples/traefik/docker-compose.yml +++ b/examples/traefik/docker-compose.yml @@ -9,8 +9,8 @@ services: - 8080:8080 # MGMT WEB UI volumes: - /var/run/docker.sock:/var/run/docker.sock:ro # ro = read-only access to the docker.sock - - /mnt/docker-volumes/traefik:/etc/traefik/ # put the provided traefik.yml and fileConfig.yml files at this location - - /mnt/docker-volumes/traefik/logs:/logs + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik:/etc/traefik/ # put the provided traefik.yml and fileConfig.yml files at this location + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/logs networks: - proxy environment: diff --git a/examples/uptimekuma/docker-compose.yml b/examples/uptimekuma/docker-compose.yml index 87208e0..4b08518 100644 --- a/examples/uptimekuma/docker-compose.yml +++ b/examples/uptimekuma/docker-compose.yml @@ -12,7 +12,7 @@ services: - 1.1.1.1 - 8.8.8.8 volumes: - - /mnt/docker-volumes/uptimekuma:/app/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/uptimekuma:/app/data labels: - traefik.enable=true - traefik.http.routers.uptimekuma.rule=Host(`uptimekuma.example.com`) diff --git a/examples/vaultwarden/docker-compose.yml b/examples/vaultwarden/docker-compose.yml index 4da15c9..fad097f 100644 --- a/examples/vaultwarden/docker-compose.yml +++ b/examples/vaultwarden/docker-compose.yml @@ -37,8 +37,8 @@ services: # - traefik.http.services.vaultwarden-ws.loadbalancer.server.port=3012 restart: unless-stopped volumes: - - /mnt/docker-volumes/vaultwarden/data:/data - - /mnt/docker-volumes/vaultwarden/logs:/data/logs + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/logs:/data/logs # this service will backup your vaultwarden instance corretly # see https://github.com/Bruceforce/vaultwarden-backup for more information @@ -53,8 +53,8 @@ services: #labels: # com.centurylinklabs.watchtower.monitor-only: true volumes: - - /mnt/docker-volumes/vaultwarden/data:/data/ - - /mnt/docker-volumes/vaultwarden/backup:/myBackup + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/data:/data/ + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/vaultwarden/backup:/myBackup - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro environment: diff --git a/examples/watchyourlan/docker-compose.yml b/examples/watchyourlan/docker-compose.yml index b596492..5139089 100644 --- a/examples/watchyourlan/docker-compose.yml +++ b/examples/watchyourlan/docker-compose.yml @@ -6,7 +6,7 @@ services: network_mode: "host" restart: unless-stopped volumes: - - /mnt/docker-volumes/watchyourlan:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/watchyourlan:/data environment: TZ: Europe/Berlin # required: needs your TZ for correct time IFACE: "ens18" # required: 1 or more interface diff --git a/examples/wg-easy/docker-compose.yml b/examples/wg-easy/docker-compose.yml index 2201afb..3a9169f 100644 --- a/examples/wg-easy/docker-compose.yml +++ b/examples/wg-easy/docker-compose.yml @@ -17,7 +17,7 @@ services: - 51821:51821/tcp #WEBGUI restart: unless-stopped volumes: - - /mnt/docker-volumes/wg-easy:/etc/wireguard + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wg-easy:/etc/wireguard # labels: # - traefik.enable=true # - traefik.http.routers.wireguard.rule=Host(`vpn.example.com`) diff --git a/examples/wikijs/docker-compose.yml b/examples/wikijs/docker-compose.yml index ac22007..2770f5c 100644 --- a/examples/wikijs/docker-compose.yml +++ b/examples/wikijs/docker-compose.yml @@ -12,8 +12,8 @@ services: ports: - 3000:3000 # WEB UI volumes: - - /mnt/docker-volumes/wikijs/config:/config - - /mnt/docker-volumes/wikijs/data:/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/config:/config + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/data:/data links: - db @@ -26,4 +26,4 @@ services: image: postgres:13.4-bullseye restart: unless-stopped volumes: - - /mnt/docker-volumes/wikijs/database:/var/lib/postgresql/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wikijs/database:/var/lib/postgresql/data diff --git a/examples/wireguard/docker-compose.yml b/examples/wireguard/docker-compose.yml index e120404..2f41c74 100644 --- a/examples/wireguard/docker-compose.yml +++ b/examples/wireguard/docker-compose.yml @@ -1,27 +1,27 @@ -version: '3.7' +version: '3.7' services: -   wireguard: -     image: linuxserver/wireguard -     container_name: wireguard -     cap_add: -       - NET_ADMIN -       - SYS_MODULE -     environment: -       - PUID=1000 -       - PGID=1000 -       - TZ=Europe/Berlin -       - SERVERURL=vpn.example.com #optional -       - SERVERPORT=51820 #optional -       - PEERS=1 #optional -       - PEERDNS=auto #optional -       - INTERNAL_SUBNET=10.13.13.0 #optional -       - ALLOWEDIPS=0.0.0.0/0 #optional -     volumes: -       - /mnt/docker-volumes/wireguard/config:/config -       - /usr/src:/usr/src # location of kernel headers -       - /lib/modules:/lib/modules -     ports: -       - 51820:51820/udp -     sysctls: -       - net.ipv4.conf.all.src_valid_mark=1 -     restart: unless-stopped + wireguard: + image: linuxserver/wireguard + container_name: wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Berlin + - SERVERURL=vpn.example.com #optional + - SERVERPORT=51820 #optional + - PEERS=1 #optional + - PEERDNS=auto #optional + - INTERNAL_SUBNET=10.13.13.0 #optional + - ALLOWEDIPS=0.0.0.0/0 #optional + volumes: + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wireguard/config:/config + - /usr/src:/usr/src # location of kernel headers + - /lib/modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + restart: unless-stopped \ No newline at end of file diff --git a/examples/wordpress/docker-compose.yml b/examples/wordpress/docker-compose.yml index e285f8f..a1b878a 100644 --- a/examples/wordpress/docker-compose.yml +++ b/examples/wordpress/docker-compose.yml @@ -9,7 +9,7 @@ services: #networks: # - proxy volumes: - - /mnt/docker-volumes/wordpress/mysql:/var/lib/mysql + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wordpress/mysql:/var/lib/mysql restart: unless-stopped environment: - MYSQL_ROOT_PASSWORD=wordpressroot @@ -22,7 +22,7 @@ services: container_name: wordpress hostname: wordpress volumes: - - /mnt/docker-volumes/wordpress/data:/var/www/html + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/wordpress/data:/var/www/html ports: - 80:80 #networks: diff --git a/examples/youtrack/docker-compose.yml b/examples/youtrack/docker-compose.yml index 608c7ab..e5e0a7a 100644 --- a/examples/youtrack/docker-compose.yml +++ b/examples/youtrack/docker-compose.yml @@ -10,10 +10,10 @@ services: ports: - 8080:8080 # web ui volumes: - - /mnt/docker-volumes/youtrack/data:/opt/youtrack/data - - /mnt/docker-volumes/youtrack/conf:/opt/youtrack/conf - - /mnt/docker-volumes/youtrack/logs:/opt/youtrack/logs - - /mnt/docker-volumes/youtrack/backups:/opt/youtrack/backups + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/youtrack/data:/opt/youtrack/data + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/youtrack/conf:/opt/youtrack/conf + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/youtrack/logs:/opt/youtrack/logs + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/youtrack/backups:/opt/youtrack/backups deploy: placement: constraints: