Docker env-variable mapping

docker port mapping is cascading style

Dockerfile ->

OS Env Variable ->

docker run --env-file .env.docker.local option ->

ecosystem.config.js

which means ecosystem.config.js 'env' will override everything.

Dockerfile

ENV PORT 80
EXPOSE 80

Last updated

Was this helpful?