diff --git a/docker-compose.yml b/docker-compose.yml index c10a67c..ea96de5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,19 @@ -docker-bench-security: - # use image if you have a dedicated build step: - # docker build --rm -t docker-bench-security . - # image: docker-bench-security +version: '3' - # use build path to Dockerfile if docker-compose should build the image +services: + + docker-bench-security: + #image: docker-bench-security build: . - - cap_add: - - audit_control - labels: - - docker_bench_security - net: host - pid: host + #container_name: web + #ports: + # - "8899:8000" + volumes: + - /var/lib:/var/lib + - /var/run/docker.sock:/var/run/docker.sock + - /usr/lib/systemd:/usr/lib/systemd + - /etc:/etc stdin_open: true tty: true - volumes: - - /var/lib:/var/lib - - /var/run/docker.sock:/var/run/docker.sock - - /usr/lib/systemd:/usr/lib/systemd - - /etc:/etc + cap_add: + - audit_control