MIgrating netbox to docker image

534 views
Skip to first unread message

James Smyth

unread,
Aug 15, 2018, 6:15:10 AM8/15/18
to NetBox
I've been tasked with migrating our netbox instances (prod, backup, test) to docker. I've tested using the ninech docker image and can bring it up successfully. I know docker a bit so this is fine. The problems I'm having is with the nginx. Nginx isn't my strong point. By default it runs from server-name:port, but we'd need it to run from it's current url (netbox.domain.com) with its existing ssl certificates. Is there an easy change to the nginx.conf to change the url?

Lukas Resch

unread,
Aug 15, 2018, 7:33:15 AM8/15/18
to netbox-...@googlegroups.com
Hi,

there is a quite good minimal example on nginx configuration in the
NetBox documentation. [0]

I think what you are looking for is the 'server_name' parameter.

Regards

[0]
https://netbox.readthedocs.io/en/latest/installation/3-http-daemon/#option-a-nginx

James Smyth

unread,
Aug 15, 2018, 11:07:50 AM8/15/18
to NetBox
Thanks! Missed that, I'll check it out
Reply all
Reply to author
Forward
0 new messages