docker composeでホストOSのシェルの環境変数をコンテナに渡す命題
手順docker-compose.ymlversion: '3' services: app: env_file: - myenv.txt environment: - DEBUG=$DEBUG
コンテナ起動$ DEBUG=123 docker-compose up
参考https://stackoverflow.com/questions/49293967/how-to-pass-environment-variable-to-docker-compose-up |
|