Update docker-compose.yml
This commit is contained in:
+2
-1
@@ -42,7 +42,8 @@ services:
|
|||||||
- ./templates:/app/templates:ro
|
- ./templates:/app/templates:ro
|
||||||
- ./static:/app/static:ro
|
- ./static:/app/static:ro
|
||||||
ports:
|
ports:
|
||||||
- "${PORT:-8080}:8080"
|
# This is the crucial fix: both host and container ports are now dynamic
|
||||||
|
- "${PORT:-8080}:${PORT:-8080}"
|
||||||
networks:
|
networks:
|
||||||
- blogging-network
|
- blogging-network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user