NGINX & Sonarr in Docker Container

Hey Guys,

Im a long time Sonarr user and first time NGINX user.

I am using Cent OS 7 and running NGINX as a system service using systemctl. I am running Sonarr as a docker.

I am confused about what and where my config file should be and go for NGINX.

I have the file located at "/etc/nginx/sites-enabled/d2.mydomain.com

Config:

server {
listen 80;
server_name d2.mydomain.com;

location / {
    proxy_pass        http://127.17.0.4:8989;
    proxy_set_header  X-Real-IP  $remote_addr;
    proxy_set_header        Host            $host;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_redirect off;
}
access_log /var/log/nginx/d2.prometheus.ooo;

}

The IP “http://127.17.0.4:8989” is my docker container IP.

I have added the base URL /sonarr in the sonarr docker but I get the error “The page you are looking for is not found.” when i navigate to “d2.mydomain.com/sonarr

Any help would be great

I believe you’d want your HOST ip there instead of the docker IP. When you created the container, did you do the “-p 8989:8989” to map the ports? I’d assume you did since if you can access sonarr locally.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.