mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-06-28 07:36:43 +00:00
docker compose v3 fix
Signed-off-by: Greg Stencel <greg.stencel@anthesisgroup.com>
This commit is contained in:
parent
55ab78bb12
commit
7affb6f3eb
1 changed files with 15 additions and 17 deletions
|
@ -1,21 +1,19 @@
|
||||||
docker-bench-security:
|
version: '3'
|
||||||
# use image if you have a dedicated build step:
|
|
||||||
# docker build --rm -t docker-bench-security .
|
|
||||||
# image: docker-bench-security
|
|
||||||
|
|
||||||
# use build path to Dockerfile if docker-compose should build the image
|
services:
|
||||||
|
|
||||||
|
docker-bench-security:
|
||||||
|
#image: docker-bench-security
|
||||||
build: .
|
build: .
|
||||||
|
#container_name: web
|
||||||
cap_add:
|
#ports:
|
||||||
- audit_control
|
# - "8899:8000"
|
||||||
labels:
|
volumes:
|
||||||
- docker_bench_security
|
- /var/lib:/var/lib
|
||||||
net: host
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
pid: host
|
- /usr/lib/systemd:/usr/lib/systemd
|
||||||
|
- /etc:/etc
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
volumes:
|
cap_add:
|
||||||
- /var/lib:/var/lib
|
- audit_control
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- /usr/lib/systemd:/usr/lib/systemd
|
|
||||||
- /etc:/etc
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue