Is my docker setup correct? I only seem to be facing errors.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

My dockerfile: FROM golang:1.14-alpine RUN mkdir /app ADD . /app WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN go build -o server . CMD [“./server”] My docker-compose.yml: “` version: “3.5” services: elasticsearch: container_name: “elasticsearch” image: docker.elastic.co/elasticsearch/elasticsearch:7.8.0 environment: – node.name=elasticsearch – cluster.name=es-docker-cluster – bootstrap.memory_lock=true – cluster.initial_master_nodes=elasticsearch – “ES_JAVA_OPTS=-Xms512m -Xmx512m” ulimits: memlock: soft: -1 hard: -1 ports: – 9200:9200 golang: container_name: “golang” build: context: . dockerfile: Dockerfile ports: – “8080:8080” restart: unless-stopped depends_on: – elasticsearch “` I keep getting a weird error: panic: Get “http://elasticsearch:9200/”: dial tcp 172.18.0.2:9200: connect: connection refused I’ve been at this problem for more than 12 hours now, don’t understand what’s wrong. This is a SO question that I asked, if you want more details. https://stackoverflow.com/questions/63204985/unable-connect-from-one-container-to-another PLEASE HELP. submitted by /u/awesumsingh [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

Docker For Database Images

Sat Aug 1 , 2020
Spread the love          I have never used docker but it seems like a must learn technology. I’m just trying to understand a the benefits. Say I am developing an application that uses a MySql Server. From my research, its obvious that you download and run a docker image of a SqlServer […]
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM