Failed to load host address when using standalone build on docker.
Unanswered
Cuckoo wasp posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Cuckoo waspOP
I have followed this instruction (https://github.com/vercel/next.js/tree/canary/examples/with-docker-multi-env) on how to build Next.js using docker with multiple env but faces some problem when i try to access to hosted address of docker container. I have attach some image that might help you guys understanding. Any help is much appreciate.
This is the logs from container::
This is the logs from container::
2023-08-27 19:12:27 - ready started server on 127.0.0.1:3000, url: http://127.0.0.1:3000
2023-08-27 19:12:27 - info Loaded env from /tovtrip_aba_mini_app/.env.production
2023-08-27 19:12:27 - info Loaded env from /tovtrip_aba_mini_app/.env
![Image](https://cdn.discordapp.com/attachments/1145342802553737327/1145342802859937802/Screenshot_2023-08-27_at_7.59.31_PM.png)
![Image](https://cdn.discordapp.com/attachments/1145342802553737327/1145342803178696804/Screenshot_2023-08-27_at_8.00.38_PM.png)
![Image](https://cdn.discordapp.com/attachments/1145342802553737327/1145342803405181039/Screenshot_2023-08-27_at_8.02.12_PM.png)
![Image](https://cdn.discordapp.com/attachments/1145342802553737327/1145342803761705040/Screenshot_2023-08-27_at_8.02.58_PM.png)
2 Replies
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
European sprat
Add environment variable
HOSTNAME=0.0.0.0
HOSTNAME=0.0.0.0
![Avatar](https://cdn.discordapp.com/embed/avatars/4.png)
Cuckoo waspOP
Thank you got it working.