On the docker host is a folder for an web side: /var/html
Inside is a config file, named config.yaml => /var/html/config.yaml
It works with
volumes:
- /var/html/:/var/html
The config.yaml is mounted with the folder.
Now, on docker host, I have the file stored in /etc/foo/config.yaml
Is there anyway in docker-compose to do that? That does not work:
volumes:
- /var/html/:/var/html
- /etc/foo/config.yaml:/var/html/config.yaml
Any other idea except mounting to a different volume and copying on startup of container?