I have some docker-compose configuration, including volume section:
volumes: - ./var/dynamic-mounts:/var/dynamic-mounts
Its work correc