Add docker-compose/README.md
This commit is contained in:
22
docker-compose/README.md
Normal file
22
docker-compose/README.md
Normal file
@@ -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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user