Specify a port on .env to run db on (when we are running more than one db on a server)
cauafroes opened this issue · 2 comments
cauafroes commented
this worked wonders for me, but i change db ports often, so i locally changed my .env to have DB_port entry:
DB_PORT=5460
and used this var in the compose.yml mysql port:
${IP}:${DB_PORT}:3306
would be interesting to have that on the main branch or is my cenario too specific?
mughalmuneeb786 commented
please read this post you understand ports with docker
https://ioflood.com/blog/docker-compose-ports-vs-expose-explained/
@cauafroes
cauafroes commented
will read it, thanks