allow ephemeral host port selection to container port 80

This commit is contained in:
Joseph D'Souza 2026-03-03 14:48:38 +01:00
parent 962a5be29f
commit 2321e5389d

View File

@ -28,7 +28,7 @@ services:
restart: unless-stopped
tty: true
ports:
- "8000:80"
- "80" # Here port 80 in the container is mapped to any ephemeral port (random Docker chosen port) on the host.
volumes:
- ./server:/var/www
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/