2021年5月1日星期六

problem of Communication between image docker application with database Mysql 5.7 also docker image

I have 2 applications:

Each application is containerized in a Docker image. the first is image docker of an application deploy on glassfish 5.1 the second is also image docker Mysql Server 5.7

the two containers are in the same docker network

all works good when access my application from localhost of ubuntu Desktop but when i bridge ubuntu to windows i can access to my app but i can't authenticate

exemple:

enter image description here

Docker-compose

version: '3.7'  services:    mysql-with-file:      image: ossama97/ossama:mysql-latest      container_name: mysql-ribatis      volumes:        - volume-BD:/var/lib/mysql      ports:        - "3306:3306"      restart: always      networks:        - linkall      ubuntu-glassfish-app:      image: ossama97/ossama:eparapheur-latest-run      container_name: glassfishapp      stdin_open: true      # docker run -i      tty: true             # docker run -t      volumes:        - volume-app:/data      ports:        - "8080:8080"        - "4848:4848"        restart: always      depends_on:        - mysql-with-file      networks:        - linkall    networks:    linkall:  volumes:    volume-BD:    volume-app:  
https://stackoverflow.com/questions/67352288/problem-of-communication-between-image-docker-application-with-database-mysql-5 May 02, 2021 at 09:37AM

没有评论:

发表评论