forked from extern/podman-compose
test fixes for SELinux (Fedora)
This commit is contained in:
parent
80a47a13d5
commit
17f9ca61bd
@ -4,7 +4,7 @@ services:
|
|||||||
image: busybox
|
image: busybox
|
||||||
command: busybox httpd -h /var/www/html/ -f -p 8001
|
command: busybox httpd -h /var/www/html/ -f -p 8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./1.env:/var/www/html/index.txt
|
- ./1.env:/var/www/html/index.txt:z
|
||||||
env_file: ./1.env
|
env_file: ./1.env
|
||||||
labels:
|
labels:
|
||||||
l1: v1
|
l1: v1
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
web1:
|
web1:
|
||||||
|
image: busybox
|
||||||
env_file: ./12.env
|
env_file: ./12.env
|
||||||
labels:
|
labels:
|
||||||
- l1=v2
|
- l1=v2
|
||||||
- l2=v2
|
- l2=v2
|
||||||
environment:
|
environment:
|
||||||
mykey1: myval2
|
mykey1: myval2
|
||||||
mykey2: myval2
|
mykey2: myval2
|
||||||
@ -13,6 +14,6 @@ services:
|
|||||||
image: busybox
|
image: busybox
|
||||||
command: busybox httpd -h /var/www/html/ -f -p 8002
|
command: busybox httpd -h /var/www/html/ -f -p 8002
|
||||||
volumes:
|
volumes:
|
||||||
- ./2.env:/var/www/html/index.txt
|
- ./2.env:/var/www/html/index.txt:z
|
||||||
env_file: ./2.env
|
env_file: ./2.env
|
||||||
|
|
||||||
|
@ -6,16 +6,16 @@ services:
|
|||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8001:8001
|
- 8001:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test1.txt:/var/www/html/index.txt:ro
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
hostname: web1
|
hostname: web1
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8002:8001
|
- 8002:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test2.txt:/var/www/html/index.txt:ro
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
||||||
|
|
||||||
|
@ -8,16 +8,16 @@ services:
|
|||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8001:8001
|
- 8001:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test1.txt:/var/www/html/index.txt:ro
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
hostname: web2
|
hostname: web2
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8002:8001
|
- 8002:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test2.txt:/var/www/html/index.txt:ro
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net1
|
- net1
|
||||||
ports:
|
ports:
|
||||||
- 8001:8001
|
- 8001:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test1.txt:/var/www/html/index.txt:ro
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
#container_name: web2
|
#container_name: web2
|
||||||
@ -25,7 +25,7 @@ services:
|
|||||||
- net1
|
- net1
|
||||||
- net2
|
- net2
|
||||||
ports:
|
ports:
|
||||||
- 8002:8001
|
- 8002:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test2.txt:/var/www/html/index.txt:ro
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
||||||
|
|
||||||
|
@ -6,30 +6,30 @@ services:
|
|||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8001:8001
|
- 8001:8001
|
||||||
volumes:
|
volumes:
|
||||||
- ./test1.txt:/var/www/html/index.txt:ro
|
- ./test1.txt:/var/www/html/index.txt:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
hostname: web2
|
hostname: web2
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
ports:
|
ports:
|
||||||
- 8002:8002
|
- 8002:8002
|
||||||
- target: 8003
|
- target: 8003
|
||||||
host_ip: 127.0.0.1
|
host_ip: 127.0.0.1
|
||||||
published: 8003
|
published: 8003
|
||||||
protocol: udp
|
protocol: udp
|
||||||
- target: 8004
|
- target: 8004
|
||||||
host_ip: 127.0.0.1
|
host_ip: 127.0.0.1
|
||||||
published: 8004
|
published: 8004
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
- target: 8005
|
- target: 8005
|
||||||
published: 8005
|
published: 8005
|
||||||
- target: 8006
|
- target: 8006
|
||||||
protocol: udp
|
protocol: udp
|
||||||
- target: 8007
|
- target: 8007
|
||||||
host_ip: 127.0.0.1
|
host_ip: 127.0.0.1
|
||||||
volumes:
|
volumes:
|
||||||
- ./test2.txt:/var/www/html/index.txt:ro
|
- ./test2.txt:/var/www/html/index.txt:ro,z
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ services:
|
|||||||
- /run
|
- /run
|
||||||
- /tmp
|
- /tmp
|
||||||
volumes:
|
volumes:
|
||||||
- ./print_secrets.sh:/tmp/print_secrets.sh
|
- ./print_secrets.sh:/tmp/print_secrets.sh:z
|
||||||
secrets:
|
secrets:
|
||||||
- my_secret
|
- my_secret
|
||||||
- my_secret_2
|
- my_secret_2
|
||||||
|
0
tests/short/data/redis/.keep
Normal file
0
tests/short/data/redis/.keep
Normal file
0
tests/short/data/web/.keep
Normal file
0
tests/short/data/web/.keep
Normal file
@ -4,7 +4,7 @@ services:
|
|||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
command: ["redis-server", "--appendonly yes", "--notify-keyspace-events", "Ex"]
|
command: ["redis-server", "--appendonly yes", "--notify-keyspace-events", "Ex"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/redis:/data
|
- ./data/redis:/data:z
|
||||||
tmpfs: /run1
|
tmpfs: /run1
|
||||||
ports:
|
ports:
|
||||||
- "6379"
|
- "6379"
|
||||||
@ -25,16 +25,16 @@ services:
|
|||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/web:/var/www/html:ro
|
- ./data/web:/var/www/html:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- ~/Downloads/www:/var/www/html:ro
|
- ~/Downloads/www:/var/www/html:ro,z
|
||||||
web3:
|
web3:
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8003"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/html:/var/www/html:ro
|
- /var/www/html:/var/www/html:ro,z
|
||||||
|
@ -14,7 +14,7 @@ services:
|
|||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
|
||||||
working_dir: /var/www/html
|
working_dir: /var/www/html
|
||||||
volumes:
|
volumes:
|
||||||
- myvol1:/var/www/html:ro
|
- myvol1:/var/www/html:ro,z
|
||||||
web2:
|
web2:
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8002"]
|
||||||
|
Loading…
Reference in New Issue
Block a user