| 17:23 | * | mstenta has joined |
| 19:20 | firgoodway[m] | I'm probably missing something simple here... I attempted to do a dev deployment (`docker-compose.development.yml`), ran `docker-compose up -d`, but can't get past the initial setup screen in the browser. I get error message:... (full message at <libera.ems.host/_matrix/media/v3/downloa>) |
| 19:28 | mstenta[m] | Hi firgoodway - you need to replace the default `localhost` address of the database with `db` under the "Advanced" settings |
| 19:28 | mstenta[m] | From the perspective of the farmOS docker container, the database is on another host (db within the Docker network), not on localhost (which would be the same host as farmOS) |
| 19:29 | mstenta[m] | If that makes any sense :-) |
| 19:30 | firgoodway[m] | it does! I figured it was something like that. So, would a solution be to enter "host" as that machine's IP address? or am I still barking up the wrong tree? |
| 19:31 | firgoodway[m] | ...oh yep that did the trick :) |
| 19:32 | mstenta[m] | Oh you should just be able to put db as the address |
| 19:32 | mstenta[m] | Internally, Docker sets up the db and www hostnames so that the containers can communicate with one another |
| 19:32 | mstenta[m] | I don't know what host does |
| 19:33 | mstenta[m] | Notice how there are two "services": github.com/farmOS/farmOS/blob/2.x/docker |
| 19:33 | mstenta[m] | db and www |
| 19:33 | firgoodway[m] | oh interesting... dev for 15+ years and still a total docker newb |
| 19:34 | mstenta[m] | those become the hostnames of the containers within their docker network, so that's how they talk to one another (so the www can connect to the database by making a request to db) |
| 19:34 | mstenta[m] | haha yea no worries, Docker has it's own ins and outs :-) |
| 19:34 | mstenta[m] | once it clicks it all makes sense |
| 19:37 | firgoodway[m] | thanks for the quick help, you guys are great |
| 19:50 | symbioquine[m] | <firgoodway[m]> "it does! I figured it was..." <- The only downside of that is that it implies you're exposing the db container to the rest of your network - when in this case it only needs to be exposed to the farmOS (www) docker container. |
| 19:51 | symbioquine[m] | You could work around that with firewall rules or something, but from a security in layers perspective it would be better to have one of the first lines of defense be not exposing it in the first place. |
| 20:59 | * | mstenta has quit (Ping timeout: 258 seconds) |
| 23:14 | * | mstenta has joined |
| 23:19 | * | mstenta has quit (Ping timeout: 250 seconds) |
| 23:32 | * | mstenta has joined |
| 23:38 | * | mstenta has quit (Quit: Leaving) |