aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
diff options
context:
space:
mode:
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.j219
1 files changed, 8 insertions, 11 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 1fd365eec0..6dcbc9f871 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
@@ -8,15 +8,15 @@ services:
expose:
- "6001"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-0:
+ network_mode: "host"
privileged: true
- ports:
- - "6001:6001"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -39,15 +39,15 @@ services:
expose:
- "6002"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-1:
+ network_mode: "host"
privileged: true
- ports:
- - "6002:6002"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -62,6 +62,3 @@ services:
- type: "bind"
source: "/usr/lib/firmware/"
target: "/usr/lib/firmware/"
-networks:
- tg-nw-0:
- tg-nw-1: \ No newline at end of file