From 3b4856f532b570021a74fc36f9b012d86a8906a3 Mon Sep 17 00:00:00 2001 From: jay817 Date: Wed, 11 Dec 2024 02:05:04 +0000 Subject: [PATCH] Add docker-compose/README.md --- docker-compose/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker-compose/README.md diff --git a/docker-compose/README.md b/docker-compose/README.md new file mode 100644 index 0000000..b999868 --- /dev/null +++ b/docker-compose/README.md @@ -0,0 +1,22 @@ +``` +services: + test: + container_name: test + image: python:slim + entrypoint: bash -c + command: + - | + echo hello + echo world + tail -f /dev/null +``` + +``` +w@ws-Mac-mini ~ % docker compose up +[+] Running 2/0 + ✔ Network w_default Created 0.0s + ✔ Container test Created 0.0s +Attaching to test +test | hello +test | world +```