diff --git a/docker-compose.yml b/docker-compose.yml index dcaf408..9367a80 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,17 +13,12 @@ services: - ./elasticsearch/docker/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml environment: ES_JAVA_OPTS: "-Xmx256m -Xms256m" - ports: - - "9200:9200" - - "9300:9300" networks: - helk kibana: image: docker.elastic.co/kibana/kibana:5.4.1 volumes: - ./kibana/docker/kibana.yml:/usr/share/config/kibana/kibana.yml - ports: - - "5601:5601" depends_on: - elasticsearch networks: @@ -44,14 +39,14 @@ services: nginx: image: nginx:latest volumes: - - ./nginx/docker/default:/etc/nginx/sites-available/default - - ./nginx/docker/htpasswd.users:/etc/nginx/htpasswd.users + - ./nginx/docker/nginx.conf:/usr/share/nginx/conf/nginx.conf + - ./nginx/docker/htpasswd.users:/usr/share/nginx/htpasswd.users ports: - "80:80" depends_on: - kibana networks: - - helk + - helk networks: diff --git a/nginx/docker/default b/nginx/docker/nginx.conf similarity index 80% rename from nginx/docker/default rename to nginx/docker/nginx.conf index af1cdca..cc9b837 100644 --- a/nginx/docker/default +++ b/nginx/docker/nginx.conf @@ -1,10 +1,10 @@ server { listen 80; - server_name HELK; + server_name localhost; auth_basic "Restricted Access"; - auth_basic_user_file /etc/nginx/htpasswd.users; + auth_basic_user_file /usr/share/nginx/htpasswd.users; location / { proxy_pass http://localhost:5601;