refactor: removed root .env

This commit is contained in:
2026-01-22 16:51:59 +01:00
parent bc3adbc85d
commit ff9f1be595
6 changed files with 12 additions and 17 deletions

View File

@@ -1,3 +1,3 @@
HTTP_PORT="8080"
DATA_PATH="/path/to/your/data"
CONFIG_PATH="../../volumes/filebrowser"
FB_BASEURL="/"

View File

@@ -2,14 +2,12 @@ services:
filebrowser:
image: hurlenko/filebrowser
container_name: filebrowser
env_file:
- .env
user: "${PUID:-1000}:${PGID:-1000}"
user: "1000:1000"
ports:
- "${HTTP_PORT:-8080}:8080"
- "10943:8080"
volumes:
- "${DATA_PATH:?DATA_PATH not set}:/data"
- "${VOLUMES_DIR:?VOLUMES_DIR not set}/filebrowser:/config"
- "${DATA_PATH:?}:/data"
- "${CONFIG_PATH:?}:/config"
environment:
- FB_BASEURL: "${FB_BASEURL:-/}"
restart: unless-stopped

View File

@@ -1,5 +1,6 @@
TZ="Europe/Rome"
WATCHTOWER_CLEANUP="true"
WATCHTOWER_SCHEDULE="0 0 4 * * ?"
WATCHTOWER_NOTIFICATION_URL=""
# Update only containers without a com.centurylinklabs.watchtower.scope label
WATCHTOWER_SCOPE="none"
WATCHTOWER_SCOPE="none"
WATCHTOWER_NOTIFICATION_URL=""

View File

@@ -2,14 +2,12 @@ services:
watchtower:
image: containrrr/watchtower
container_name: watchtower
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: "${TZ:-Europe/Rome}"
TZ: "${TZ:-Etc/UTC}"
WATCHTOWER_CLEANUP: "${WATCHTOWER_CLEANUP:-false}"
WATCHTOWER_SCHEDULE: "${WATCHTOWER_SCHEDULE:?WATCHTOWER_SCHEDULE not set}"
WATCHTOWER_SCHEDULE: "${WATCHTOWER_SCHEDULE:-0 0 0 * * ?}"
WATCHTOWER_SCOPE: "${WATCHTOWER_SCOPE:-}"
WATCHTOWER_NOTIFICATION_URL: "${WATCHTOWER_NOTIFICATION_URL:-}"
restart: always