diff --git a/docker-compose.yml b/docker-compose.yml index b06a3ca..3ac2c80 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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