From c1f62b9e27301ee4174b7ee63935fbd50362253e Mon Sep 17 00:00:00 2001 From: Guillaume Destuynder Date: Wed, 17 Oct 2018 13:32:17 -0700 Subject: [PATCH] use gene's env var for the ES URL --- docker/compose/cloudy_mozdef.env | 1 + docker/compose/docker-compose-cloudy-mozdef.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/compose/cloudy_mozdef.env b/docker/compose/cloudy_mozdef.env index e69de29b..a017ddc3 100644 --- a/docker/compose/cloudy_mozdef.env +++ b/docker/compose/cloudy_mozdef.env @@ -0,0 +1 @@ +ES_URL=http://localhost:9200 diff --git a/docker/compose/docker-compose-cloudy-mozdef.yml b/docker/compose/docker-compose-cloudy-mozdef.yml index 341e964d..3f4c8040 100644 --- a/docker/compose/docker-compose-cloudy-mozdef.yml +++ b/docker/compose/docker-compose-cloudy-mozdef.yml @@ -32,7 +32,7 @@ services: dockerfile: docker/compose/mozdef_bootstrap/Dockerfile env_file: - cloudy_mozdef.env - command: bash -c 'source /opt/mozdef/envs/python/bin/activate && python docker/conf/initial_setup.py ${MOZDEF_ELASTICSEARCH_URL} cron/defaultMappingTemplate.json cron/backup.conf' + command: bash -c 'source /opt/mozdef/envs/python/bin/activate && python docker/conf/initial_setup.py ${ES_URL} cron/defaultMappingTemplate.json cron/backup.conf' depends_on: - base networks: