forked from extern/podman-compose
add ports test
This commit is contained in:
parent
07a2430c41
commit
6a42d6861d
18
tests/ports/docker-compose.yml
Normal file
18
tests/ports/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
||||
version: "3"
|
||||
services:
|
||||
web1:
|
||||
image: busybox
|
||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||
working_dir: /var/www/html
|
||||
ports:
|
||||
- 8001:8001
|
||||
volumes:
|
||||
- ./test1.txt:/var/www/html/index.txt:ro
|
||||
web2:
|
||||
image: busybox
|
||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
||||
working_dir: /var/www/html
|
||||
ports:
|
||||
- 8002:8002
|
||||
volumes:
|
||||
- ./test2.txt:/var/www/html/index.txt:ro
|
1
tests/ports/test1.txt
Normal file
1
tests/ports/test1.txt
Normal file
@ -0,0 +1 @@
|
||||
test1
|
1
tests/ports/test2.txt
Normal file
1
tests/ports/test2.txt
Normal file
@ -0,0 +1 @@
|
||||
test2
|
Loading…
Reference in New Issue
Block a user