From 3cae6fe61d649bc4df0459ce941273cf86f0c818 Mon Sep 17 00:00:00 2001 From: Florian Braun Date: Wed, 7 Feb 2018 18:18:58 +0100 Subject: [PATCH] Automatically set SELinux Fixes SELinux issues. Docker-Compose can do this on the fly https://github.com/docker/compose/issues/643 --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6e8418ab..e12b60dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,8 @@ services: networks: - docker_elk # volumes: -# - my-path:/var/ossec/data -# - my-path:/etc/postfix +# - my-path:/var/ossec/data:Z +# - my-path:/etc/postfix:Z depends_on: - elasticsearch logstash: @@ -23,7 +23,7 @@ services: restart: always command: -f /etc/logstash/conf.d/ # volumes: -# - my-path:/etc/logstash/conf.d +# - my-path:/etc/logstash/conf.d:Z links: - kibana - elasticsearch:elasticsearch @@ -60,7 +60,7 @@ services: hard: -1 mem_limit: 2g # volumes: -# - my-path:/usr/share/elasticsearch/data +# - my-path:/usr/share/elasticsearch/data:Z networks: - docker_elk kibana: