JastaFly
@JastaFly

Проблема с установкой ElasticSearch в Docker?

Есть файл docker-compose:

version: '3'

services:
  nginx-balancer:
    build:
      context: ./nginx-balancer
      dockerfile: Dockerfile
    container_name: nginx-balancer
    image: localapp/nginx-balancer
    ports:
      - "80:80"
      - "443:443"
    depends_on:
       - nginx-webserver1
       - nginx-webserver2
    networks:
      - app-network

  nginx-webserver1:
    build:
      context: ./nginx-webserver
      dockerfile: Dockerfile
    container_name: nginx-webserver1
    image: localapp/nginx-webserver
    ports:
      - "8081:80"
    volumes:
       - ./code:/var/www/application.local
    networks:
      - app-network

  nginx-webserver2:
    build:
      context: ./nginx-webserver
      dockerfile: Dockerfile
    container_name: nginx-webserver2
    image: localapp/nginx-webserver
    ports:
      - "8082:80"
    volumes:
       - ./code:/var/www/application.local
    networks:
      - app-network

  php1:
    build:
      context: ./php-fpm
      dockerfile: Dockerfile
    image: localapp/php
    container_name: php1
    volumes:
       - ./code:/var/www/application.local
    networks:
      - app-network

  php2:
    build:
      context: ./php-fpm
      dockerfile: Dockerfile
    image: localapp/php
    container_name: php2
    volumes:
       - ./code:/var/www/application.local
    networks:
      - app-network

  elastic_search:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
    container_name: elastic_search
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      - "discovery.type=single-node"
    networks:
      - app-network

  kibana:
      image: docker.elastic.co/kibana/kibana:7.16.3
      container_name: kibana
      ports:
        - "5601:5601"
      environment:
        - "ELASTICSEARCH_HOSTS=http://elastic_search:9200"
      networks:
        - app-network
      depends_on:
        - elastic_search

networks:
  app-network:
    driver: bridge

Но при запуске docker-compose up получаю ошибку на стадии скачивания образа ElasticSearch:

ERROR: error pulling image configuration: error parsing HTTP 403 response body: invalid character '<' looking for beginning of v
alue: "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<HTML><HEAD><
META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n<TITLE>ERROR: The request could not be satisfied</T
ITLE>\n</HEAD><BODY>\n<H1>403 ERROR</H1>\n<H2>The request could not be satisfied.</H2>\n<HR noshade size=\"1px\">\nThe Amazon Cl
oudFront distribution is configured to block access from your country.\nWe can't connect to the server for this app or website a
t this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.\n<B
R clear=\"all\">\nIf you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent th
is error by reviewing the CloudFront documentation.\n<BR clear=\"all\">\n<HR noshade size=\"1px\">\n<PRE>\nGenerated by cloudfro
nt (CloudFront)\nRequest ID: jJDE7TvrCqKBhC8W5tRNl6ajh8oICSXm3EidpZCnSViCHgV7jjtY6A==\n</PRE>\n<ADDRESS>\n</ADDRESS>\n</BODY></H
TML>"

Подскажите в чем может быть проблема?
  • Вопрос задан
  • 2397 просмотров
Решения вопроса 1
@Drno
А прочитать текст ошибки?? Там же написано

«Доступ из Вашей страны запрещён»

Решение. Воспользоваться например ВПНом
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы