mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-05 21:49:38 +01:00
add tests for selinux with verbose bind mount
based on seccomp test. Without the selinux option, visiting localhost:8080 will give a 404 error because httpd cannot access the file, but with selinux: z the context for the file will be appropriately updated so httpd can access it Signed-off-by: charliemirabile <46761267+charliemirabile@users.noreply.github.com>
This commit is contained in:
parent
d7cf0966d3
commit
3e1f7d554b
14
tests/selinux/docker-compose.yml
Normal file
14
tests/selinux/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: "3"
|
||||
services:
|
||||
web1:
|
||||
image: busybox
|
||||
command: httpd -f -p 80 -h /var/www/html
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./docker-compose.yml
|
||||
target: /var/www/html/index.html
|
||||
bind:
|
||||
selinux: z
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
Loading…
Reference in New Issue
Block a user