mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-24 14:58:50 +01:00
3e1f7d554b
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>
15 lines
270 B
YAML
15 lines
270 B
YAML
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"
|
|
|