• Kache@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    Simpler to keep everything in one compose file if you can, under a test service that doesn’t build unless explicitly named

    Un-weird that env var and use the normal, boring feature of defining environment under your test service

    • Gamma@beehaw.orgOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      The variable is already in the environment, it just doesn’t have a default because it’s required for each container

        • Gamma@beehaw.orgOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 month ago

          Yep, you can also set defaults, required, alternates, etc

          This discussion did help me realize that my problem was that I forgot an !override on one of my service’s options. Now it’s just merging the two compose files and setting the profile, thanks for that!