EasyEngine / feature-requests

A repo to track all feature requests on EasyEngine project using issue tracker.
5 stars 2 forks source link

Expose database to external network #80

Closed eliasjnior closed 2 months ago

eliasjnior commented 5 years ago

I didn't find any way or any documentation how to expose the database. I know that's not the best security, but I think should be available how to expose to external network.

jknight2014 commented 5 years ago

This has to do with the docker network. The easiest way I can think is to forward the necessary port from the host to the docker container. Search for exposing ports inside a docker container.

kirtangajjar commented 5 years ago

@eliasjnior It's currently not possible to do that in way that's

  1. not hack-ish and
  2. guaranteed to be persisted across EasyEngine updates.

Hence we would consider as feature request sometime in future.

michacassola commented 5 years ago

@eliasjnior What is your usecase anyway? Maybe a different kind of feature request is required like running EE in a cloud where the DB container sits on one node and the rest on others...?

eliasjnior commented 5 years ago

@michacassola I needed that because actually my client programmer needed to integrate their ERP, and they connect to database. So, as I couldn't find any solution, I just created a new container with MariaDB and changed the site settings to that database. It's working, no problems, but I would like to have it "in correct way".

michacassola commented 5 years ago

Maybe the API could serve as a way to get and post data to the wordpress DB through wordpress? https://developer.wordpress.org/rest-api/ https://stackoverflow.com/questions/46249779/how-to-access-to-wordpress-database-from-a-mobile-app

eliasjnior commented 5 years ago

@michacassola that was my recommendation for my client. But for some reason he said could work only with database, the API wouldn't fit in his case (I think he don't know how to use). For now I will keep using a separate Docker only for database. Maybe I can think in something after :P