How to mount a single file in a volume

后端 未结 14 1014
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 10:16

I am trying to dockerize a PHP application. In the dockerfile, I download the archive, extract it, etc.

Everything works fine. However, if a new version gets released

14条回答
  •  醉梦人生
    2020-11-27 10:35

    You can also use a relative path in your docker-compose.yml file like this (tested on Windows host, Linux container):

    volumes:
        - ./test.conf:/fluentd/etc/test.conf
    

提交回复
热议问题