In the docker-compose.yaml
file created by Laravel Sail is an entry under a service's ports
section reading FORWARD_REDIS_PORT
.
I understand the short and long syntax of a service's ports
section. But, have never seen a variable pre-pended with FORWARD_
. What does this syntax mean? And how does it differ from using the short syntax for ports?
Example of Docker-Compose Ports short syntax
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
Example of Docker-Compose from Laravel Sail
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'