From 1076459e7cc89c0c0413151462c761c29ff8e84b Mon Sep 17 00:00:00 2001 From: uccuz Date: Fri, 3 Jun 2022 16:56:36 +0800 Subject: [PATCH] chore: add devices, env_file, expose and profiles --- tests/ymls/devices/docker-compose.yml | 12 ++++++++++++ tests/ymls/env_file/docker-compose.yml | 15 +++++++++++++++ tests/ymls/expose/docker-compose.yml | 12 ++++++++++++ tests/ymls/profiles/docker-compose.yml | 14 ++++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 tests/ymls/devices/docker-compose.yml create mode 100644 tests/ymls/env_file/docker-compose.yml create mode 100644 tests/ymls/expose/docker-compose.yml create mode 100644 tests/ymls/profiles/docker-compose.yml diff --git a/tests/ymls/devices/docker-compose.yml b/tests/ymls/devices/docker-compose.yml new file mode 100644 index 0000000..474d385 --- /dev/null +++ b/tests/ymls/devices/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.9" + +services: + frontend: + image: awesome/frontend + devices: + - "/dev/ttyUSB0:/dev/ttyUSB0" + backend: + image: awesome/backend + devices: + - "/dev/ttyUSB1:/dev/ttyUSB1" + - "/dev/ttyUSB2:/dev/ttyUSB2" \ No newline at end of file diff --git a/tests/ymls/env_file/docker-compose.yml b/tests/ymls/env_file/docker-compose.yml new file mode 100644 index 0000000..d687153 --- /dev/null +++ b/tests/ymls/env_file/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3.9" + +services: + frontend: + image: awesome/frontend + env_file: a.env + backend: + image: awesome/backend + env_file: + - b.env + db: + image: awesome/db + env_file: + - c.env + - d.env diff --git a/tests/ymls/expose/docker-compose.yml b/tests/ymls/expose/docker-compose.yml new file mode 100644 index 0000000..473be64 --- /dev/null +++ b/tests/ymls/expose/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.9" + +services: + frontend: + image: awesome/frontend + expose: + - "27118" + backend: + image: awesome/backend + expose: + - "27017" + - "27018" \ No newline at end of file diff --git a/tests/ymls/profiles/docker-compose.yml b/tests/ymls/profiles/docker-compose.yml new file mode 100644 index 0000000..64d755f --- /dev/null +++ b/tests/ymls/profiles/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3.9" +services: + frontend: + image: awesome/frontend + profiles: ["frontend"] + phpmyadmin: + image: phpmyadmin + profiles: + - debug + db: + image: awesome/db + profiles: + - db + - sql \ No newline at end of file