Unable to load the start page
Hi everyone, trying to start immich on a VM via docker. Here is how it's looking right now:
All the required components are running
And here are the urls for proxy container: "
docker inspect immich_proxy_container | grep IMMICH
"IMMICH_WEB_URL=immich_web_container:3000",
"IMMICH_SERVER_URL=immich_server:3001",
```
Any idea what I might be doing wrong? I am using docker containers and not docker-compose, as I am deploying everything via terraform docker provider on a linode server 🙂

51 Replies
Can you provide your docker-compose and .env file?
Like I said in the post, I am not using docker-compose. Just plain docker. I can inspect containers and give you the envs passed.
ah just saw your comment
So all the containers communicate with each other using the docker dns
might be problem with terraform docker provider not putting them into the same network
I have a special network created for this setup. "immich_network" and all the containers are using this network. I will recheck if that's the case or not
Please check the logs of the server container to make sure it's running OK
it's running okay.
Did you check the logs?
container is healthy.
From the web container, can you ping other container?
All are on the same network. just confirmed.
pinging works. 😉
what about
curl immich_server:3001
?it is looking for immich-server not immich_server
Good catch, interesting
What is "It" in this case?
the error message you showed
you are right.
What's the output of
docker inspect immich_web_container | grep IMMICH
?
Haven't defined any envs in web_container, do they need them too.
Yes, it does
I will check where the
immich-server
is coming from, and will also add all the envs to web-container
.https://github.com/immich-app/immich/blob/main/docker/docker-compose.yml#L52-L53
The immich-server is a default because you haven't set the env var

Yes correct, since i am using docker and not docker-compose, I didn't provide it a
.env
file, and adding all envs manually. Make sense
That error is gone, but new one is here:
Can you check the immich-proxy log?
proxy logs show nothing other than the generic nginx startup logs. Any idea how can I enable logging? LOG_LEVEL doesn't seem to work.
Which container is this on?
I cannot see that, all the logs show nothing. which is also weird.

Is ipv6 enabled on your system?
it should be fixed with the latest release
this should be correct, then what's the problem. Also no stack traces shown in container logs.
please make sure to use the
-
instead of underscorefor the server url? okay. but I would not make any mistake as the name is generated as follows:
"IMMICH_SERVER_URL=${docker_container.immich_server_container.name}:3001",
and it will always be correct.
this is how terraform makes sure that the names are consistent. But if you want I can change the _
to -
, but only if it's really required.maybe try this first to see if it is the problem
changing now. deploying with
-
New error

you problably need
http://
Problem solved.
But I still don't know why I had to change from
_
to -
:/When you use docker compose the service names in the compose file are DNS resolvable. Since you don't use compose you need to connect via container name or something else.
yes, that's correct. I am using container names to resolve the names, and the names are consistent as I am using terraform variables. But nevertheless, learned something today.
So that's why you had to change hyphen to underscore
Per the RFC standards, a hostname isn't allowed to have an underscore in it, while a DNS name is. Those are kinda mixing here, so that's when you get the situation where it sometimes does or doesn't work - best to avoid the situation and just not use underscores
although in both cases the name of the container name and the variable was the same, but yes, not DNS resolvable. Alright this helps a lot.
One more quick question. Does anyone have any short post somewhere on how to enable quick https support using nginx? I will be using self signed certs for my domain.
self-signed cert doesn't work with the mobile app
Ah okay. good to know.
will probably use web browser for now, not the app.
A lot of people use Nginx proxy manager, traefik, caddy, or other proxies to configure ssl.
(for external access) or use http on lan
thanks again for the help everyone. 🙂
Good luck trying it out. Let us know if you find any bugs 🐛🐛🐛
Another route you can try, since you're using terraform, is this with a DNS challenge https://registry.terraform.io/providers/vancluever/acme/latest/docs/resources/certificate
Thanks a lot folks once again, this was super fast help. Such a nice user experience to get help on discord about a free service. Kudos.
I hope I can dig in to the code soon and can help in whatever way I can.
Thank you! 😄