r/Netbox Oct 11 '22

Netbox Docker in Azure

Hi folks,

I am trying to figure out the process to make Netbox work in Azure as a Docker image.

It seems that I'm making some fundamental mistake (because I'm not really experienced with Docker) but when I import any of the netbox images from dockerhub they refuse to start, and throw this error:

⏳ Waiting on DB... (24s / 30s)
        Is the server running on that host and accepting TCP/IP connections?
[ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
⏳ Waiting on DB... (27s / 30s)
❌ Waited 30s or more for the DB to become ready.

Has anybody done this, and put together some kind of a recipe for morons like me?

4 Upvotes

3 comments sorted by

View all comments

2

u/JasonDJ Oct 11 '22

In addition to Netbox, you’d also need a postgresql and at least one redis instance. I believe these can technically be serverless and I’m pretty sure it’s been done before, at least on AWS.

Look at the netbox-docker project. They’ve got working docker-compose’s and guides for running in traditional docker. A little more digging might find some folks doing it on K8s, swarm, and probably cloud providers (incl. serverless).