#Docker #Network #Container

Configure a Bridge network between Docker container

Currently I try to configure the network between two Docker Container. On the first container my application is running, on the other Container a simple NGINX server is running. I would like to give both a static IP so that I am able to test the communication. The current application and NGINX Dockerfile looks as follows: FROM continuumio/miniconda3 WORKDIR /app COPY ./application /app RUN apt-get update -y && apt-get install -y gcc RUN conda env create -f environment.yml RUN echo "source activate aic_env" > ~/.bashrc ENV PATH /opt/conda/envs/aic_env/bin:$PATH CMD ["python3","src/main.py"] The docker-compose.yml looks like this: version: '3.7' services: application: image: application container_name: "application" build: context: .. dockerfile: docker/application/Dockerfile networks: default nginx: image: nginx container_name: "nginx" build: context: .. dockerfile: docker/nginx/Dockerfile restart: always networks: default What do I need to do for a communication between both containers on a static IP under port 8080 ?
Subscribe to #Docker #Network #Container