[DiscordArchive] ok, :/ thanks anyways, anyone knows how to do it?
[DiscordArchive] ok, :/ thanks anyways, anyone knows how to do it?
Archived author: Legend • Posted: 2023-10-15T08:59:51.564000+00:00
Original source
ok, :/ thanks anyways, anyone knows how to do it?
Archived author: Honey • Posted: 2023-10-15T09:00:57.001000+00:00
Original source
Try editing the files I mentioned and restart worldserver/authserver.
Archived author: Honey • Posted: 2023-10-15T09:01:27.264000+00:00
Original source
Then see if the change survives a restart of the container.
Archived author: mynameismeat • Posted: 2023-10-15T15:24:00.595000+00:00
Original source
You can change the env vars in the `docker-compose.yml` to point to whichever db instance you need. Then just remove the `ac-database` and all references to it, basically.
Archived author: Legend • Posted: 2023-10-15T15:43:51.539000+00:00
Original source
ok, how about the ip? would it work since its not going to be with docker?
Archived author: Legend • Posted: 2023-10-15T15:44:18.174000+00:00
Original source
can i put for example 127.0.0.1? it would still be on the same machine but simply not docker
Archived author: Honey • Posted: 2023-10-15T15:47:44.302000+00:00
Original source
iirc each docker container has it's own IP and 127.0.0.1 would point to that container only
Archived author: mynameismeat • Posted: 2023-10-15T16:07:35.346000+00:00
Original source
^ this, you'd want to put the IP of your host machine
I think you can also put the hostname `host.docker.internal` instead of an IP, though I haven't tried/confirmed this
Archived author: Puncha • Posted: 2023-10-15T16:28:57.228000+00:00
Original source
Yes I think if you are running database on the same machine running docker. To reach database from a container you would want to use whatever that machines IP is on local network.
Like my computer is 192.168.1.X, containers have some subnet and all may have IP like 172.17.0.X, but they can communicate to the 192.168.1.X devices
So in my case I would set IP for database in docker-compose.yml to be my computer at 192.168.1.X, port still 3306
Archived author: Puncha • Posted: 2023-10-15T16:34:37.077000+00:00
Original source
ah and like <@299455931610038282> mentioned, it looks like host.docker.internal should resolve to your local network IP like 192.168.1.X