5.5. Using Docker Compose

To use Virtuozzo Storage volumes, you need to have the driver: ploop line in the docker-compose.yml file. Here is an example:

version: '2'
volumes:
    wordpress:
        driver: ploop
        driver_opts:
            size: 50G
            tier: 1
...
services:
    wp:
        image: wordpress
        working_dir: /var/www/html
        volumes:
         - wordpress:/var/www/html/wp-content
...