From 9cb689a3c4878577dab8541fb73eda259f43cf0c Mon Sep 17 00:00:00 2001 From: azurejelly <178000437+azurejelly@users.noreply.github.com> Date: Thu, 16 Oct 2025 09:48:30 -0400 Subject: [PATCH] fix(compose): remove unused `environment` section VERT uses `$env/static` for environment variables, so none of these are being used during runtime. They should only be passed to Docker during container build time. --- docker-compose.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1caa157..7372f1f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,24 +2,15 @@ services: vert: container_name: vert image: ghcr.io/vert-sh/vert:latest - environment: - - PUB_HOSTNAME=${PUB_HOSTNAME:-vert.sh} - - PUB_PLAUSIBLE_URL=${PUB_PLAUSIBLE_URL:-https://plausible.example.com} - - PUB_ENV=${PUB_ENV:-production} - - PORT=${PORT:-3000} - - PUB_VERTD_URL=${PUB_VERTD_URL:-https://vertd.vert.sh} - - PUB_DONATION_URL=${PUB_DONATION_URL:-https://donations.vert.sh} - - PUB_STRIPE_KEY=${PUB_STRIPE_KEY:-pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2} build: context: . args: - PUB_HOSTNAME: ${PUB_HOSTNAME:-vert.sh} - PUB_PLAUSIBLE_URL: ${PUB_PLAUSIBLE_URL:-https://plausible.example.com} + PUB_HOSTNAME: ${PUB_HOSTNAME:-localhost:5173} + PUB_PLAUSIBLE_URL: ${PUB_PLAUSIBLE_URL:-} PUB_ENV: ${PUB_ENV:-production} - PUB_VERTD_URL: ${PUB_VERTD_URL:-https://vertd.vert.sh} + PUB_VERTD_URL: ${PUB_VERTD_URL:-} PUB_DONATION_URL: ${PUB_DONATION_URL:-https://donations.vert.sh} PUB_STRIPE_KEY: ${PUB_STRIPE_KEY:-pk_live_51RDVmAGSxPVad6bQwzVNnbc28nlmzA30krLWk1fefCMpUPiSRPkavMMbGqa8A3lUaOCMlsUEVy2CWDYg0ip3aPpL00ZJlsMkf2} - restart: unless-stopped ports: - ${PORT:-3000}:80