use full storage path not path to volumes

This commit is contained in:
Florian Zirker 2024-10-24 14:07:46 +00:00
parent a69a5991b3
commit c6bf4e3fa0
8 changed files with 22 additions and 22 deletions

View file

@ -3,7 +3,7 @@ services:
syncserver: syncserver:
image: mozilla/syncserver:latest image: mozilla/syncserver:latest
volumes: volumes:
- ${VOLUMES_PATH}/firefoxsync/syncserver:/data - ${STORAGE_PATH}/syncserver:/data
user: ${UID}:${GID} user: ${UID}:${GID}
networks: networks:
- web - web
@ -38,7 +38,7 @@ services:
networks: networks:
- firefoxsync - firefoxsync
volumes: volumes:
- ${VOLUMES_PATH}/firefoxsync/db:/var/lib/postgresql/data - ${STORAGE_PATH}/db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s interval: 10s

View file

@ -3,7 +3,7 @@ services:
forgejo: forgejo:
image: codeberg.org/forgejo/forgejo:${FORGEJO_VERSION} image: codeberg.org/forgejo/forgejo:${FORGEJO_VERSION}
volumes: volumes:
- ${VOLUMES_PATH}/git/forgejo_data:/data - ${STORAGE_PATH}/forgejo_data:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
@ -51,7 +51,7 @@ services:
networks: networks:
- git - git
volumes: volumes:
- ${VOLUMES_PATH}/git/forgejo_db:/var/lib/postgresql/data - ${STORAGE_PATH}/forgejo_db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"] test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 10s interval: 10s

View file

@ -40,7 +40,7 @@ services:
networks: networks:
- news - news
volumes: volumes:
- ${VOLUMES_PATH}/news/db:/var/lib/postgresql/data - ${STORAGE_PATH}/db:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD", "pg_isready", "-U", "miniflux"] test: ["CMD", "pg_isready", "-U", "miniflux"]
interval: 10s interval: 10s

View file

@ -5,7 +5,7 @@ services:
depends_on: depends_on:
- app - app
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html:ro - ${STORAGE_PATH}/html:/var/www/html:ro
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro - $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped restart: unless-stopped
networks: networks:
@ -38,8 +38,8 @@ services:
args: args:
- NC_MAIN_VERSION=${NC_MAIN_VERSION} - NC_MAIN_VERSION=${NC_MAIN_VERSION}
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html - ${STORAGE_PATH}/html:/var/www/html
- ${VOLUMES_PATH}/nextcloud/data:/var/www/html/data - ${STORAGE_PATH}/data:/var/www/html/data
- type: tmpfs - type: tmpfs
target: /tmp target: /tmp
restart: unless-stopped restart: unless-stopped
@ -70,8 +70,8 @@ services:
networks: networks:
- nextcloud - nextcloud
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html - ${STORAGE_PATH}/html:/var/www/html
- ${VOLUMES_PATH}/nextcloud/data:/var/www/html/data - ${STORAGE_PATH}/data:/var/www/html/data
entrypoint: /cron.sh entrypoint: /cron.sh
depends_on: depends_on:
- db - db
@ -89,8 +89,8 @@ services:
- web - web
- nextcloud - nextcloud
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/html:/var/www/html:ro - ${STORAGE_PATH}/html:/var/www/html:ro
- ${VOLUMES_PATH}/nextcloud/data:/var/www/html/data:ro - ${STORAGE_PATH}/data:/var/www/html/data:ro
environment: environment:
- PORT=7867 - PORT=7867
- NEXTCLOUD_URL=http://web - NEXTCLOUD_URL=http://web
@ -111,7 +111,7 @@ services:
image: mariadb:${MARIADB_VERSION} image: mariadb:${MARIADB_VERSION}
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/db:/var/lib/mysql - ${STORAGE_PATH}/db:/var/lib/mysql
restart: unless-stopped restart: unless-stopped
environment: environment:
- PUID=1000 - PUID=1000
@ -167,7 +167,7 @@ services:
networks: networks:
- nextcloud - nextcloud
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/redis:/data - ${STORAGE_PATH}/redis:/data
healthcheck: healthcheck:
test: ["CMD", "redis-cli", "ping"] test: ["CMD", "redis-cli", "ping"]
interval: 5s interval: 5s
@ -212,7 +212,7 @@ services:
networks: networks:
- nextcloud - nextcloud
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud/fonts:/usr/share/fonts/drawio - ${STORAGE_PATH}/fonts:/usr/share/fonts/drawio
restart: unless-stopped restart: unless-stopped
labels: labels:
- "docker.group=netxtcloud" - "docker.group=netxtcloud"

View file

@ -41,7 +41,7 @@ services:
- web - web
- dockersocket - dockersocket
volumes: volumes:
- ${VOLUMES_PATH}/proxy/letsencrypt:/letsencrypt - ${STORAGE_PATH}/letsencrypt:/letsencrypt
- $PWD/tls.toml:/etc/traefik/tls.toml - $PWD/tls.toml:/etc/traefik/tls.toml
healthcheck: healthcheck:
test: traefik healthcheck --ping test: traefik healthcheck --ping

View file

@ -22,8 +22,8 @@ services:
- NTFY_ENABLE_LOGIN=true - NTFY_ENABLE_LOGIN=true
- NTFY_ENABLE_RESERVATIONS=false - NTFY_ENABLE_RESERVATIONS=false
volumes: volumes:
- ${VOLUMES_PATH}/push/ntfy/cache/:/var/cache/ntfy - ${STORAGE_PATH}/ntfy/cache/:/var/cache/ntfy
- ${VOLUMES_PATH}/push/ntfy/varlib/:/var/lib/ntfy/ - ${STORAGE_PATH}/ntfy/varlib/:/var/lib/ntfy/
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.push.rule=Host(`${FQDN_PUSH}`)" - "traefik.http.routers.push.rule=Host(`${FQDN_PUSH}`)"

View file

@ -9,7 +9,7 @@ services:
image: rustdesk/rustdesk-server:${RUSTDESK_VERSION} image: rustdesk/rustdesk-server:${RUSTDESK_VERSION}
command: hbbs -r ${DOMAIN}:21117 -k _ command: hbbs -r ${DOMAIN}:21117 -k _
volumes: volumes:
- ${VOLUMES_PATH}/rustdesk:/root - ${STORAGE_PATH}:/root
networks: networks:
- rustdesk - rustdesk
depends_on: depends_on:
@ -26,7 +26,7 @@ services:
image: rustdesk/rustdesk-server:latest image: rustdesk/rustdesk-server:latest
command: hbbr -k _ command: hbbr -k _
volumes: volumes:
- ${VOLUMES_PATH}/rustdesk:/root - ${STORAGE_PATH}:/root
networks: networks:
- rustdesk - rustdesk
restart: unless-stopped restart: unless-stopped

View file

@ -20,7 +20,7 @@ services:
- web - web
- wallabag - wallabag
volumes: volumes:
- ${VOLUMES_PATH}/wallabag/images:/var/www/wallabag/web/assets/images - ${STORAGE_PATH}/images:/var/www/wallabag/web/assets/images
healthcheck: healthcheck:
test: ["CMD", "curl" ,"--fail", "http://localhost/api/info"] test: ["CMD", "curl" ,"--fail", "http://localhost/api/info"]
interval: 10s interval: 10s
@ -44,7 +44,7 @@ services:
networks: networks:
- wallabag - wallabag
volumes: volumes:
- /var/dockervolumes/wallabag/db:/var/lib/mysql - ${STORAGE_PATH}/db:/var/lib/mysql
labels: labels:
- "docker.group=wallabag" - "docker.group=wallabag"