Hope this is a proper sub for asking this.

disclaimer : Consider me a programming novice, with HTML and limited PHP/CSS experience.

Ive been messing with docker compose, and i’m loving it. Ive also written a small script that i want to dockerize, but i want to use the environment list. What is a proper code for getting the ENV data in your script?

Ive been duckduckgo-ing (doesnt sound like the old days, does it) and i cant figure it out.

  • @TrustingZebra
    link
    English
    410 months ago

    You need to learn how to write a Dockerfile (plenty of guides online). Not that a Dockerfile is different from a compose.yaml file (in development I use both).

    • That Dutch guyOP
      link
      fedilink
      English
      110 months ago

      The whole docker thing is rather new to me, thanks for the hints.

      • @TrustingZebra
        link
        English
        210 months ago

        No problem! Let me know if you have questions. Docker was new to me a few years ago, now I work with it professionally.