Skip to content

A self-hosted media server and file management system

fix: docker env comments counted as variables, and lack of app name config caused conflicts

aminnausineabab99734a1
diff --git a/docker/.env.docker b/docker/.env.docker
index 22354b64..6ba89425 100644
--- a/docker/.env.docker
+++ b/docker/.env.docker
@@ -1,26 +1,61 @@
-######################### USER CONFIG #########################
+#================================
+# Custom Config
+#================================
+# App Name
+# Used for session cookies — must be different from other Laravel apps on your domain
+APP_NAME=mediaServerDemo
-APP_SCHEME=http # App Protocol -> http OR https -> Should not change
-APP_HOST=app.test # App URL -> Website will be available on https://app.test if you use caddy and http://app.test:8080 otherwise
-APP_PORT=8080 # App Port -> Website will be available on https://app.test if you use caddy and http://app.test:8080 otherwise
-REVERB_PORT=443 # Websocket Port -> Set to 6001 if you have websocket connection issues
-REVERB_SCHEME=https # Websocket Protocol -> http OR https -> Set to HTTPS if you have a valid SSL Certificate for your URL
+# App Protocol — http OR https (Should not change)
+# Internally, Nginx runs without ssl and your reverse proxy handles it (caddy)
+APP_SCHEME=http
-APP_ENV=local # App Environment -> change to staging if you are using a valid domain or production server
+# App URL — Website will be available on https://app.test if you use Caddy,
+# or http://app.test:8080 otherwise
+APP_HOST=app.test
-DB_HOST=database # Database URL -> points to the docker compose database -> if you already have a database running elsewhere, provide that URL here
-DB_PORT=5432 # Database PORT -> points to the docker compose database -> if you already have a database running elsewhere, provide that URL here
-DB_DATABASE=mediaServer # Database Name -> if you are using another database, make sure a database with this name exists
-DB_USERNAME=postgres # Database Username -> if you are using another database, provide your credentials here
-DB_PASSWORD=root # Database Password -> if you are using another database, provide your credentials here
+# App Port — Ideally left as 8080
+APP_PORT=8080
-TRUSTED_PROXIES=* # Trusted Proxies -> change to the ip address of your reverse proxies if you have issues
-DOCKER_RELEASE=latest # Docker Release Tag -> can set to latest or beta depending on which image you want to use
+# Websocket Port — Set to 6001 if you have connection issues
+REVERB_PORT=443
-PLAUSIBLE_SCRIPT_URL= # Plausible URL -> url to plausible js file to monitor your website
-PLAUSIBLE_DOMAIN= # Plausible DOMAIN -> the domain for your plausible website
-PLAUSIBLE_SITE_ID="${APP_HOST}" # Plausible SITE ID -> id for your site on plausible (probably your url)
-PLAUSIBLE_API_TOKEN= # Plausible API TOKEN-> token for accessing plausible stats in realtime
+# Websocket Protocol — Set to https if you have SSL
+REVERB_SCHEME=https
-CF= # CLOUDFLARE TOKEN -> unused for now
+# App Environment — Set to `staging` or `production` for real domains
+APP_ENV=local
+
+# Database connection (Docker default)
+DB_HOST=database
+DB_PORT=5432
+DB_DATABASE=mediaServer
+DB_USERNAME=postgres
+DB_PASSWORD=root
+
+# Trusted proxies — Change to proxy IPs if needed
+TRUSTED_PROXIES=*
+
+# Docker image tag — Use `latest`, `beta`, or specific tag
+DOCKER_RELEASE=latest
+
+# ================================
+# Plausible Analytics (optional)
+# ================================
+
+# URL to plausible.js
+PLAUSIBLE_SCRIPT_URL=
+
+# Plausible domain
+PLAUSIBLE_DOMAIN=
+
+# Plausible site ID — usually your domain
+PLAUSIBLE_SITE_ID=app.test
+
+# Plausible API token
+PLAUSIBLE_API_TOKEN=
+
+# ================================
+# Cloudflare Token (unused)
+# ================================
+CF=