refactor: removed root .env
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
.env
|
.env
|
||||||
|
docker-compose.override.yml
|
||||||
volumes/**
|
volumes/**
|
||||||
@@ -9,10 +9,7 @@ docker compose -f compose/<service name>/docker-compose.yml up -d
|
|||||||
|
|
||||||
## Todo
|
## Todo
|
||||||
- [ ] Put all config files in `compose/`
|
- [ ] Put all config files in `compose/`
|
||||||
- [ ] Use .env files for configs
|
- [x] Provide example .env files
|
||||||
- [ ] Use .env files for secrets
|
|
||||||
- [ ] Use .env files for volume binds
|
|
||||||
- [ ] Provide example .env files
|
|
||||||
- [x] Gitignore actual .env
|
- [x] Gitignore actual .env
|
||||||
- [x] Gitignore folders and files in `volumes/`
|
- [x] Gitignore folders and files in `volumes/`
|
||||||
- [ ] Add README to every service describing required env variables, commands and volumes
|
- [ ] Add README to every service describing required env variables, commands and volumes
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
HTTP_PORT="8080"
|
|
||||||
DATA_PATH="/path/to/your/data"
|
DATA_PATH="/path/to/your/data"
|
||||||
|
CONFIG_PATH="../../volumes/filebrowser"
|
||||||
FB_BASEURL="/"
|
FB_BASEURL="/"
|
||||||
@@ -2,14 +2,12 @@ services:
|
|||||||
filebrowser:
|
filebrowser:
|
||||||
image: hurlenko/filebrowser
|
image: hurlenko/filebrowser
|
||||||
container_name: filebrowser
|
container_name: filebrowser
|
||||||
env_file:
|
user: "1000:1000"
|
||||||
- .env
|
|
||||||
user: "${PUID:-1000}:${PGID:-1000}"
|
|
||||||
ports:
|
ports:
|
||||||
- "${HTTP_PORT:-8080}:8080"
|
- "10943:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- "${DATA_PATH:?DATA_PATH not set}:/data"
|
- "${DATA_PATH:?}:/data"
|
||||||
- "${VOLUMES_DIR:?VOLUMES_DIR not set}/filebrowser:/config"
|
- "${CONFIG_PATH:?}:/config"
|
||||||
environment:
|
environment:
|
||||||
- FB_BASEURL: "${FB_BASEURL:-/}"
|
- FB_BASEURL: "${FB_BASEURL:-/}"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
|
TZ="Europe/Rome"
|
||||||
WATCHTOWER_CLEANUP="true"
|
WATCHTOWER_CLEANUP="true"
|
||||||
WATCHTOWER_SCHEDULE="0 0 4 * * ?"
|
WATCHTOWER_SCHEDULE="0 0 4 * * ?"
|
||||||
WATCHTOWER_NOTIFICATION_URL=""
|
|
||||||
# Update only containers without a com.centurylinklabs.watchtower.scope label
|
# Update only containers without a com.centurylinklabs.watchtower.scope label
|
||||||
WATCHTOWER_SCOPE="none"
|
WATCHTOWER_SCOPE="none"
|
||||||
|
WATCHTOWER_NOTIFICATION_URL=""
|
||||||
@@ -2,14 +2,12 @@ services:
|
|||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
container_name: watchtower
|
container_name: watchtower
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
TZ: "${TZ:-Europe/Rome}"
|
TZ: "${TZ:-Etc/UTC}"
|
||||||
WATCHTOWER_CLEANUP: "${WATCHTOWER_CLEANUP:-false}"
|
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_SCOPE: "${WATCHTOWER_SCOPE:-}"
|
||||||
WATCHTOWER_NOTIFICATION_URL: "${WATCHTOWER_NOTIFICATION_URL:-}"
|
WATCHTOWER_NOTIFICATION_URL: "${WATCHTOWER_NOTIFICATION_URL:-}"
|
||||||
restart: always
|
restart: always
|
||||||
Reference in New Issue
Block a user