I am trying to map the port of the db-container to my containers localhost:port. Is there a way to map these ports? (I want to reach the db inside wildfly on localhost at port 12345)
currently, my db is only under oracle:1521 reachable. but I want it to be reachable under localhost:12345.
version: '3.5'
services:
wildfly:
image: wildfly:latest
ports:
- "32004:32004"
depends_on:
- oracle
links:
- oracle
oracle:
image: oracle-db:latest
expose:
- "1521"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:1521"]
interval: 2m
timeout: 10s
retries: 5
Thanks