Skip to content

Commit f71baff

Browse files
committed
don't include BACKUP_DATABASE_URLS in .env.example - automatically added by mkdb.sh if not present\ntwo stage install process for installers - don't automatically start, leave time for user to configure apps
1 parent 91ba1ed commit f71baff

25 files changed

Lines changed: 371 additions & 84 deletions

File tree

.gitignore.initial

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ lib/*
1515
log/*
1616
run/*
1717
local/
18+
19+
# Written by bin/install-audio-satellite.sh when AirPlay is enabled
20+
bin/.install-audio-satellite-airplay

apps/authentik/.env.example

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ AUTHENTIK_POSTGRESQL__NAME=authentik_db
2424
AUTHENTIK_POSTGRESQL__USER=authentik_user
2525
AUTHENTIK_POSTGRESQL__PASSWORD=<DATABASE PASSWORD>
2626

27-
# Automatic database backup URL
28-
BACKUP_DATABASE_URLS=postgresql://authentik_user:<DATABASE PASSWORD>@postgresql:5432/authentik_db
27+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
28+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
29+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/calibre-web/.env.example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
BACKUP_DATABASE_URLS=sqlite:///opt/lib/calibre-web/metadatab.db
2-
31
PUID=1000
42
PGID=1000
53
TZ=America/Los_Angeles
64
DOCKER_MODS=linuxserver/mods:universal-calibre #optional
75
OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional
6+
7+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
8+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
9+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/event-manager/.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ DATABASE_NAME=eventmanager_db
2020
DATABASE_HOST=postgresql
2121
DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
2222

23-
# Used by db-backup to back up this service's database
24-
BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
25-
2623
# ── Redis (internal event-manager-redis container) ────────────────────────────
2724
REDIS_URL=redis://event-manager-redis:6379/0
2825

@@ -58,3 +55,7 @@ BLUESKY_MAX_IMAGE_SIZE=950000
5855
# ── Misc ──────────────────────────────────────────────────────────────────────
5956
TZ=America/Los_Angeles
6057
RUN_MIGRATIONS=true
58+
59+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
60+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
61+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/geowiki/.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ DATABASE_NAME=geowiki_db
2020
DATABASE_HOST=postgresql
2121
DATABASE_URL=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
2222

23-
# Used by db-backup to back up this service's database
24-
BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
25-
2623
# ── Authentication - Authentik OAuth2 (optional) ──────────────────────────────
2724
#AUTHENTIK_CLIENT_ID=
2825
#AUTHENTIK_CLIENT_SECRET=
@@ -37,3 +34,7 @@ BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABA
3734
#LOCAL_USER_EMAIL=member@example.com
3835
#LOCAL_USER_PASSWORD=
3936
#LOCAL_USER_NAME=PDX Hackerspace Member
37+
38+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
39+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
40+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/home-assistant/.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
BACKUP_DATABASE_URLS=postgresql://YOUR-POSTGRESQL-USER:YOUR-POSTGRESQL-PASSWORD@YOUR-POSTGRESQL-HOSTNAME:YOUR-POSTGRESQL-PORT/YOUR-POSTGRESQL-DATABASE-NAME
1+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
2+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
3+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/invidious/.env.example

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
BACKUP_DATABASE_URLS=postgresql://YOUR-POSTGRESQL-USER:YOUR-POSTGRESQL-PASSWORD@YOUR-POSTGRESQL-HOSTNAME:YOUR-POSTGRESQL-PORT/YOUR-POSTGRESQL-DATABASE-NAME
1+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
2+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
3+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/matomo/.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
BACKUP_DATABASE_URLS=mysql://DBUSER:DBPASSWORD@mariadb:3306/DBNAME
21
TZ=America/Los_Angeles
32
MATOMO_DATABASE_HOST=mariadb
43
MATOMO_DATABASE_DBNAME=DBNAME
54
MATOMO_DATABASE_USERNAME=DBUSER
65
MATOMO_DATABASE_PASSWORD=DBPASSWORD
76
PHP_MEMORY_LIMIT=2048M
7+
8+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
9+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
10+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/member-manager/.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ DATABASE_NAME=member-manager_db
1818
DATABASE_HOST=postgresql
1919
DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
2020

21-
# Used by db-backup to back up this service's database
22-
BACKUP_DATABASE_URLS=postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_HOST}:5432/${DATABASE_NAME}
23-
2421
# ── Redis (internal member-manager-redis container) ───────────────────────────
2522
REDIS_URL=redis://member-manager-redis:6379/0
2623

@@ -78,3 +75,7 @@ MEMBER_MANAGER_BASE_URL=https://members.pdxhackerspace.org
7875
ORGANIZATION_NAME=PDX Hackerspace
7976
TZ=America/Los_Angeles
8077
TIMEZONE=America/Los_Angeles
78+
79+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
80+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
81+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

apps/mosquitto/.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
BACKUP_DATABASE_URLS=sqlite:///opt/lib/mosquitto/mosquitto.db
21
TZ=America/Los_Angeles
32

43
# Docker HEALTHCHECK: authenticated subscribe to $SYS/broker/uptime (required when allow_anonymous is false).
54
# Create this user with apps/mosquitto/bin/mkuser.sh (or mosquitto_passwd). If you use acl_file, allow read to $SYS/# for this user.
65
MOSQUITTO_HEALTHCHECK_USERNAME=
76
MOSQUITTO_HEALTHCHECK_PASSWORD=
7+
8+
# BACKUP_DATABASE_URLS — apps/postgresql/bin/mkdb.sh or apps/mariadb/bin/mkdb.sh appends this to .env when you
9+
# create the app database (unless .env already defines it). For SQLite or other URLs, set it only in your
10+
# real .env. Do not define BACKUP_DATABASE_URLS in .env.example.

0 commit comments

Comments
 (0)