From ec00519b7a5b3e23e6e9be1149e18c3c2a80b834 Mon Sep 17 00:00:00 2001 From: LordSchmackes Date: Mon, 27 Jul 2026 21:47:27 +0200 Subject: [PATCH] =?UTF-8?q?APP=5FPORT=20Variable=20f=C3=BCr=20compose=20ad?= =?UTF-8?q?ded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 654b8bf..f90a6cf 100644 --- a/.env.example +++ b/.env.example @@ -9,3 +9,4 @@ DATABASE_URL="postgresql://flixcooks:flixcooks_dev@127.0.0.1:5432/flixcooks_dev" # DATABASE_URL="postgresql://user:pass@postgresql-service:5432/flixcooks" # FLIXCOOKS_ADMIN_KEY="langes-zufaelliges-passwort" # RUN_DB_SEED="true" # nur beim allerersten Deploy: Rezepte + Site-Daten in Postgres seeden +# APP_PORT=8080 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 466dc9a..02f7596 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,14 @@ # # docker compose build # docker compose up -d -# curl http://127.0.0.1:8080/health.php +# curl http://127.0.0.1:${APP_Port}/health.php services: web: build: . restart: unless-stopped ports: - - "8080:80" + - "${APP_Port=8080}:80" environment: DATABASE_URL: postgresql://flixcooks:flixcooks_prod@postgres:5432/flixcooks FLIXCOOKS_ADMIN_KEY: ${FLIXCOOKS_ADMIN_KEY:-change-me-in-production}