From ad48315461d165375a037c7d31cdc8448f6c99f1 Mon Sep 17 00:00:00 2001 From: Arthur She Date: Thu, 16 Nov 2023 21:17:47 -0800 Subject: Add docker-compose.yaml For tf-nuc-worker01 Signed-off-by: Arthur She --- docker-compose.yaml | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..bc165c6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,98 @@ +version: "3.9" + +# common settings, it must starts with 'x-' +x-common: &common_settings + image: servod-image + build: + context: . + dockerfile: Dockerfile + restart: always + privileged: true + logging: + driver: json-file + options: + max-size: "10m" + max-file: "10" + network_mode: "host" + cap_add: + - NET_ADMIN + volumes: + - /dev:/dev + - /run/pts:/run/pts + - /var/log/servod:/var/log/servod + - /etc/timezone:/etc/timezone + - /etc/localtime:/etc/localtime + command: ["/bin/bash", "/post_servod.sh"] + +services: + lazor-01: + # include the common settings + <<: *common_settings + container_name: "lazor-01-servod" + hostname: "lazor-01-servod" + environment: + - PORT=9999 + - MODEL=trogdor + - BOARD=trogdor + - SERIAL=0280E045-8C643893 + - LAVA_DEVICE=lazor-01 + + lazor-02: + # include the common settings + <<: *common_settings + container_name: "lazor-02-servod" + hostname: "lazor-02-servod" + environment: + - PORT=9993 + - MODEL=trogdor + - BOARD=trogdor + - SERIAL=2301E022-95AC5252 + - LAVA_DEVICE=lazor-02 + + lazor-03: + # include the common settings + <<: *common_settings + container_name: "lazor-03-servod" + hostname: "lazor-03-servod" + environment: + - PORT=9998 + - MODEL=trogdor + - BOARD=trogdor + - SERIAL=20000039-95AC5252 + - LAVA_DEVICE=lazor-03 + + asurada-01: + # include the common settings + <<: *common_settings + container_name: "asurada-01-servod" + hostname: "asurada-01-servod" + environment: + - PORT=9996 + - MODEL=asurada + - BOARD=asurada + - SERIAL=1800E03D-94AB4762 + - LAVA_DEVICE=asurada-01 + + asurada-02: + # include the common settings + <<: *common_settings + container_name: "asurada-02-servod" + hostname: "asurada-02-servod" + environment: + - PORT=9992 + - MODEL=asurada + - BOARD=asurada + - SERIAL=18012023-94AB4762 + - LAVA_DEVICE=asurada-02 + + asurada-03: + # include the common settings + <<: *common_settings + container_name: "asurada-03-servod" + hostname: "asurada-03-servod" + environment: + - PORT=9995 + - MODEL=asurada + - BOARD=asurada + - SERIAL=1080801C-94A3D022 + - LAVA_DEVICE=asurada-03 -- cgit v1.2.3