Tag : docker-networking

I am trying to create two containers from the same image, each running on its own network, but listening on the same port. I would like to be able to reach either of them (myservice or myservice-test) from my nginx container. Here is my (simplified) docker-compose.yml file: version: ‘3.7’ services: myservice: image: php:8.0-fpm container_name: myservice ..

Read more

I am trying to connect from a Windows Container to an Elastic Search Instance running at the host machine. Setup: Elastic search running with the option network.host: 0.0.0.0 Container image mcr.microsoft.com/windows/nanoserver:1809 So far, I’m trying to test connectivity by accessing hosts port 9200 curl host.docker.internal:9200. Within nanoserver container, the address is resolved correctly. I`m able ..

Read more

I’m trying to setup a docker environment in which multiple containers communicate with each other via REST. My simplified system architecture looks somewhat like this: Let’s say I have two services foo and bar, that run on a node server (NestJS projects). The Dockerfile for both look something like this: FROM node:14-alpine ENV NODE_ENV=production NPM_CONFIG_PREFIX=/home/node/.npm-global ..

Read more

I have some problems while creating my docker container for my django application. I have my Dockerfile FROM python:3.8.6 ENV PYTHONUNBUFFERED 1 USER root RUN apt-get -y update && apt -y install python3-pip && pip3 install setuptools gitpython && pip install django && pip install stripe && pip install django-extensions RUN git clone https://github.com/***/*** WORKDIR ..

Read more