mirror of
https://github.com/tiennm99/composes.git
synced 2026-10-11 12:09:25 +00:00
refactor: comment out optional env vars in diun and code-server
This commit is contained in:
1 parent
5844ef5611
commit
01102bdf06
7 files changed
+18
-13
No files matched your search
@@ -126,7 +126,8 @@ of its most important member, even when a member on its own would rank lower.
|
||||
Within a group, the variable others configure comes first.
|
||||
|
||||
Optional variables are listed but commented out, in the form
|
||||
`# - KEY=${KEY:-default}`, so the service runs without them and enabling one
|
||||
`# - KEY=${KEY:-default}` (`# KEY: ${KEY:-default}` in a map-style
|
||||
`environment:`), so the service runs without them and enabling one
|
||||
means uncommenting its line. The matching `.env.example` entry is commented out
|
||||
the same way (`# KEY=default`). Must-have and should-have variables stay active.
|
||||
|
||||
|
||||
@@ -15,3 +15,6 @@ GIT_EMAIL=
|
||||
# Container hostname, also passed in as HOST -- the name zsh's prompt shows.
|
||||
# Not named HOSTNAME: the deploying shell's own HOSTNAME would override it.
|
||||
SERVICE_HOSTNAME=code-server
|
||||
|
||||
# Name of the installed web app.
|
||||
# PWA_APPNAME=code-server
|
||||
@@ -35,6 +35,7 @@ separate rootless daemon.
|
||||
| `SERVICE_HOSTNAME` | Container hostname, and the name the shell prompt shows. |
|
||||
| `PASSWORD` | Web UI login, also the in-container sudo password. **A blank value disables authentication entirely.** |
|
||||
| `GIT_NAME` / `GIT_EMAIL` | Git author and committer identity |
|
||||
| `PWA_APPNAME` | Optional. Name of the installed web app; defaults to `code-server`. |
|
||||
|
||||
Generate a password with `openssl rand -base64 24`.
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ services:
|
||||
- GIT_COMMITTER_NAME=${GIT_NAME}
|
||||
- GIT_COMMITTER_EMAIL=${GIT_EMAIL}
|
||||
- HOST=${SERVICE_HOSTNAME}
|
||||
- PWA_APPNAME=code-server
|
||||
# - PWA_APPNAME=${PWA_APPNAME:-code-server}
|
||||
volumes:
|
||||
- 'code-server-config:/config'
|
||||
- 'code-server-workspace:/workspace'
|
||||
|
||||
+4
-4
@@ -2,8 +2,8 @@ DIUN_NOTIF_TELEGRAM_TOKEN=
|
||||
DIUN_NOTIF_TELEGRAM_CHATIDS=
|
||||
DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
|
||||
DIUN_WATCH_SCHEDULE=0 0 * * *
|
||||
DIUN_WATCH_WORKERS=10
|
||||
DIUN_WATCH_JITTER=30s
|
||||
# DIUN_WATCH_WORKERS=10
|
||||
# DIUN_WATCH_JITTER=30s
|
||||
TZ=UTC
|
||||
LOG_LEVEL=info
|
||||
LOG_JSON=false
|
||||
# LOG_LEVEL=info
|
||||
# LOG_JSON=false
|
||||
@@ -50,6 +50,9 @@ fail fast if unset. Everything else has a working default.
|
||||
| `TZ` | `UTC` | Timezone for the schedule and log timestamps |
|
||||
| `LOG_LEVEL` / `LOG_JSON` | `info` / `false` | Logging |
|
||||
|
||||
`DIUN_WATCH_WORKERS`, `DIUN_WATCH_JITTER`, `LOG_LEVEL` and `LOG_JSON` are
|
||||
optional: their defaults are Diun’s own, so they are commented out.
|
||||
|
||||
State lives in the `diun-data` volume (`DIUN_DB_PATH=/data/diun.db`). Diun
|
||||
notifies on first sight of an image, so a fresh volume produces one round of
|
||||
notifications for everything currently running.
|
||||
|
||||
+4
-7
@@ -1,6 +1,3 @@
|
||||
# Required env vars (set in Coolify/Dokploy, or a sibling .env):
|
||||
# DIUN_NOTIF_TELEGRAM_TOKEN, DIUN_NOTIF_TELEGRAM_CHATIDS
|
||||
|
||||
services:
|
||||
diun:
|
||||
image: crazymax/diun:4
|
||||
@@ -14,11 +11,11 @@ services:
|
||||
DIUN_NOTIF_TELEGRAM_CHATIDS: ${DIUN_NOTIF_TELEGRAM_CHATIDS:?required}
|
||||
DIUN_DB_PATH: /data/diun.db
|
||||
DIUN_WATCH_SCHEDULE: "${DIUN_WATCH_SCHEDULE:-0 0 * * *}"
|
||||
DIUN_WATCH_WORKERS: "${DIUN_WATCH_WORKERS:-10}"
|
||||
DIUN_WATCH_JITTER: "${DIUN_WATCH_JITTER:-30s}"
|
||||
# DIUN_WATCH_WORKERS: "${DIUN_WATCH_WORKERS:-10}"
|
||||
# DIUN_WATCH_JITTER: "${DIUN_WATCH_JITTER:-30s}"
|
||||
TZ: "${TZ:-UTC}"
|
||||
LOG_LEVEL: "${LOG_LEVEL:-info}"
|
||||
LOG_JSON: "${LOG_JSON:-false}"
|
||||
# LOG_LEVEL: "${LOG_LEVEL:-info}"
|
||||
# LOG_JSON: "${LOG_JSON:-false}"
|
||||
volumes:
|
||||
- diun-data:/data
|
||||
depends_on:
|
||||
|
||||
Reference in new issue
Block a user