How to use environment variables in docker compose

后端 未结 13 760
孤街浪徒
孤街浪徒 2020-11-28 01:02

I would like to be able to use env variables inside docker-compose.yml, with values passed in at the time of docker-compose up. This is the example.

I am

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 01:08

    As far as I know, this is a work-in-progress. They want to do it, but it's not released yet. See 1377 (the "new" 495 that was mentioned by @Andy).

    I ended up implementing the "generate .yml as part of CI" approach as proposed by @Thomas.

提交回复
热议问题