diff options
Diffstat (limited to 'fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2')
-rw-r--r-- | fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 index 0cbe6c5590..1fd365eec0 100644 --- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 +++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 @@ -15,11 +15,14 @@ services: - "6001:6001" restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: - type: "bind" + source: "/dev/hugepages" + target: "/dev/hugepages" + - type: "bind" + source: "/dev/vfio" + target: "/dev/vfio" + - type: "bind" source: "/etc/sudoers" target: "/etc/sudoers" - type: "bind" @@ -43,11 +46,14 @@ services: - "6002:6002" restart: "always" shm_size: "4G" - devices: - - "/dev/hugepages:/dev/hugepages" - - "/dev/vfio:/dev/vfio" volumes: - type: "bind" + source: "/dev/hugepages" + target: "/dev/hugepages" + - type: "bind" + source: "/dev/vfio" + target: "/dev/vfio" + - type: "bind" source: "/etc/sudoers" target: "/etc/sudoers" - type: "bind" |