RV
Size: a a a
RV
MD
RV
RV
RV
RP
service:
image: ${CONTAINER_IMAGE}
SV
service:
image: ${CONTAINER_IMAGE}
RP
🌚D
service:
image: ${CONTAINER_IMAGE}
Variable substitution
Your configuration options can contain environment variables. Compose uses the variable values from the shell environment in which docker-compose is run. For example, suppose the shell contains EXTERNAL_PORT=8000 and you supply this configuration:
web:
build: .
ports:
- "${EXTERNAL_PORT}:5000"
When you run docker-compose up with this configuration, Compose looks for the EXTERNAL_PORT environment variable in the shell and substitutes its value in. In this example, Compose resolves the port mapping to "8000:5000" before creating the web container.
RP
RP
RP
RP
Variable substitution
Your configuration options can contain environment variables. Compose uses the variable values from the shell environment in which docker-compose is run. For example, suppose the shell contains EXTERNAL_PORT=8000 and you supply this configuration:
web:
build: .
ports:
- "${EXTERNAL_PORT}:5000"
When you run docker-compose up with this configuration, Compose looks for the EXTERNAL_PORT environment variable in the shell and substitutes its value in. In this example, Compose resolves the port mapping to "8000:5000" before creating the web container.
OB
SV
SV
VM
OB
VM