APP_PORT Variable für compose added

This commit is contained in:
2026-07-27 21:47:27 +02:00
parent d53fd8742d
commit ec00519b7a
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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" # DATABASE_URL="postgresql://user:pass@postgresql-service:5432/flixcooks"
# FLIXCOOKS_ADMIN_KEY="langes-zufaelliges-passwort" # FLIXCOOKS_ADMIN_KEY="langes-zufaelliges-passwort"
# RUN_DB_SEED="true" # nur beim allerersten Deploy: Rezepte + Site-Daten in Postgres seeden # RUN_DB_SEED="true" # nur beim allerersten Deploy: Rezepte + Site-Daten in Postgres seeden
# APP_PORT=8080
+2 -2
View File
@@ -2,14 +2,14 @@
# #
# docker compose build # docker compose build
# docker compose up -d # docker compose up -d
# curl http://127.0.0.1:8080/health.php # curl http://127.0.0.1:${APP_Port}/health.php
services: services:
web: web:
build: . build: .
restart: unless-stopped restart: unless-stopped
ports: ports:
- "8080:80" - "${APP_Port=8080}:80"
environment: environment:
DATABASE_URL: postgresql://flixcooks:flixcooks_prod@postgres:5432/flixcooks DATABASE_URL: postgresql://flixcooks:flixcooks_prod@postgres:5432/flixcooks
FLIXCOOKS_ADMIN_KEY: ${FLIXCOOKS_ADMIN_KEY:-change-me-in-production} FLIXCOOKS_ADMIN_KEY: ${FLIXCOOKS_ADMIN_KEY:-change-me-in-production}