Docker Environment Configs, Variables, and Entrypoints

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • In this clip, I go through the multiple ways to get your environment variables into a container, and what shouldn't go into your ENV's
    Twelve Factor Apps: The Config
    12factor.net/c...
    Sample PHP Dockerfile with lots of ENV
    github.com/Bre...
    Those Same ENV's overwritten with docker-compose.yml
    github.com/Bre...
    Simple example of using Docker ENV's to create custom app config
    github.com/Bre...
    Docker MySQL Official Image Entrypoint Script that creates ENV's from files (for secrets)
    github.com/doc...
    3 Docker Compose Features for Improving Team Development Workflow
    www.oreilly.co...

Комментарии • 26

  • @JohnBailey
    @JohnBailey Год назад +1

    :wave: :)

  • @davejones542
    @davejones542 3 года назад +1

    you made a video that isnt 2 hours long ?

  • @charitrasharma8443
    @charitrasharma8443 3 года назад

    I wanna replace a TestData.yml file which i am getting on runtime with different values, in particular location of my docker image with run command. Is dere any option to do that?

  • @patrickdk77
    @patrickdk77 4 года назад +3

    Open source does not mean there is no copyright for you to just copy it. Needs to be public domain. Or likely mit/bad license

  • @abhishekbiswal7933
    @abhishekbiswal7933 3 года назад

    Hi I have one .env file for our php applications which our application looks in a specific folder inside the container .but i don't want to keep inside. any suggestion for that.

  • @TheIaluma
    @TheIaluma 4 года назад

    what is causing this errors below every time run a docker, container run docker-compose up and others and how do I over comes these kinds of errors?
    ERROR: for proxy Cannot start service proxy: driver failed programming external connectivity on endpoint compose-sample-3_proxy_1 (c8413cedb7ba6d88be857bd5241a6113749861e6a3efce0d2742d368af847963): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
    ERROR: Encountered errors while bringing up the project.

    • @BretFisher
      @BretFisher  4 года назад

      I recommend forums.docker.com and stackoverflow.com for troubleshooting help

  • @sujeetagrahari2292
    @sujeetagrahari2292 3 года назад +1

    "env path /opt/node_app/node_modules/.bin:$path" what does this do??

    • @BretFisher
      @BretFisher  3 года назад +1

      That's the directory that node modules put their binaries. You'll then need to add them to your path to use them (like nodemon).

    • @sujeetagrahari2292
      @sujeetagrahari2292 3 года назад

      @@BretFisher But It's already inside node_mudules, wont' that be available locally to use as nodemon?

  • @vierminus
    @vierminus 3 года назад +1

    Awesome, thank you!

  • @irvinge4641
    @irvinge4641 5 лет назад

    Hi, I am having trouble passing env variables into the docker run command. How can I do sommething like
    docker run -t myImage -e envVar=$envVarOnThisMachine

    • @BretFisher
      @BretFisher  5 лет назад +1

      I recommend asking in the docker forums forums.docker.com

  • @Resistance_is_futile1337
    @Resistance_is_futile1337 5 лет назад +1

    Thanks!

  • @abiodunmichael3180
    @abiodunmichael3180 2 года назад

    👋

  • @abiodunmichael3180
    @abiodunmichael3180 2 года назад

    😆

  • @fredokwunna6903
    @fredokwunna6903 2 года назад

    :wave:

  • @ave143
    @ave143 3 года назад

    👋🏽

  • @avikkundu
    @avikkundu 2 года назад

    :wave:

  • @storytime-c1p
    @storytime-c1p 3 года назад

    :wave:

  • @fredokwunna6903
    @fredokwunna6903 2 года назад

    Awesome video Bret

  • @Raj-si5yz
    @Raj-si5yz 5 лет назад

    Hi Bret,thanks.Why we use environment variable.

  • @user779hjg45
    @user779hjg45 4 года назад +1

    23 min to explain how to use variables?