< 202023-07-21⋎22 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
17:23*mstenta has joined
19:20firgoodway[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:28mstenta[m]Hi firgoodway - you need to replace the default `localhost` address of the database with `db` under the "Advanced" settings
19:28mstenta[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:29mstenta[m]If that makes any sense :-)
19:30firgoodway[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:31firgoodway[m]...oh yep that did the trick :)
19:32mstenta[m]Oh you should just be able to put db as the address
19:32mstenta[m]Internally, Docker sets up the db and www hostnames so that the containers can communicate with one another
19:32mstenta[m]I don't know what host does
19:33mstenta[m]Notice how there are two "services": github.com/farmOS/farmOS/blob/2.x/docker
19:33mstenta[m]db and www
19:33firgoodway[m]oh interesting... dev for 15+ years and still a total docker newb
19:34mstenta[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:34mstenta[m]haha yea no worries, Docker has it's own ins and outs :-)
19:34mstenta[m]once it clicks it all makes sense
19:37firgoodway[m]thanks for the quick help, you guys are great
19:50symbioquine[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:51symbioquine[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)

< 202023-07-21⋏22 >