How can I config the reverse proxy (SWAG) with different docker networks?
Hello everyone.
I have configured my reverse proxy with swag, and it is working great, but only for the services inside its docker network called "multimedia"
As immich has its own network "immich", I dont know how should i do to connect to my immich through swag.
I created the CNAME in my domain, but when I try to reach immich, it lands in the swag page.
Right now, im using dockersocket to auto configure swag, but when I was trying to do it manually, there is no immich file in the nginx preconfigurated files.
Can you explain me how to solve this?

20 Replies

btw, I tried ading "&& docker network connect immich swag" ? the the swag post arguments and dockersocket, with no luck
Immich expose port 2283 to the local network
so you can reverse proxy to
http://local-imich-ip:2283
and it should workis it 172.29.0.9?

From the screenshot it looks like 192.168.1.23:2283
yes, that works. but my intention is to be able to acces from the internet
understood, so proxy back to that ip address, then it should work, right?
I guess, but I knwo nothing about this hahaha
is your proxy sservice also running as a docker container?
yes
it is SWAG in this photo
Can you proxy service ping 192.168.1.23?
the problem is that I used different docker networks
ah, I see
If i type that address, I get to swag page
Hmm not sure, I haven't used this case
how about
192.168.1.23:2283
?
with the portyes, that gets me to immich, but this is in LAN, i need my mobile to backup when outside home
I understand, I am trying to get you to reverse proxy back to Immich
How are you setting up your proxy for other services?
with swag, dockersockets, and the dockermod swag autoproxy. With this config, if the services are in the same network than swag, just creating the CNAME with the same name than the service name does all the job
my problem is that immich creates its own docker network,
because i have everything else in my main network
🤔
Can you try posting your question to the general channel to see if we have other people who have used swag can help out?
ok 🙂
thanks for your time