Update docker-compose.yml
CI/CD Pipeline / Test & Lint (push) Waiting to run
CI/CD Pipeline / Build Docker Image (push) Blocked by required conditions
CI/CD Pipeline / Security Scan (push) Waiting to run

This commit is contained in:
2026-08-08 07:41:14 +00:00
parent 9ac866ae4b
commit 7b4e05482d
+2 -1
View File
@@ -42,7 +42,8 @@ services:
- ./templates:/app/templates:ro
- ./static:/app/static:ro
ports:
- "${PORT:-8080}:8080"
# This is the crucial fix: both host and container ports are now dynamic
- "${PORT:-8080}:${PORT:-8080}"
networks:
- blogging-network
restart: unless-stopped