i created two docker containers based on two different images. one of db and another for webserver. both containers are running on my mac osx.
i can access db container from host machine and same way can access webserver from host machine.
however, how do i access db connection from webserver?
the way i started db container is
docker run --name oracle-db -p 1521:1521 -p 5501:5500 oracle/database:12.1.0.2-ee
I started wls container as
docker run --name oracle-wls -p 7001:7001 wls-image:latest
I can access db on host by connecting to
sqlplus scott/welcome1@//localhost:1521/ORCLCDB
I can access wls on host as
http://localhost:7001/console
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…