-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to dockerize netbox #107
Conversation
Looks great! Can we get a few people to test it out and see if they run into any problems? |
I have a separate implementation available on Docker Hub (see also source on GitHub) which I think is overall a cleaner implementation in terms of the Some overall notes (which are obviously influenced by my implementation):
In my opinion, adding a first-party Regarding next steps, I would suggest to open a separate PR to have NetBox configurable through environment variables, since that is more or less a prerequisite for the use with Docker (so that we don't have to mess around with ALLOWED_HOSTS = os.environ['ALLOWED_HOSTS'].split(' ') if 'ALLOWED_HOSTS' in os.environ else [] Another issue is: if the file is called After that issue/PR is solved, one could go on with the Docker image. FWIW, I have been more or less in charge for adding a first-party Docker image to the digital paper archive Paperless through issue #2 and eventually PR #39. There are definitely some important points that can be extracted from the discussions over there. |
Works great here! Not sure what the
|
Thanks for your feedback. I might be able to implement some of your suggestions tomorrow. Others may take a little longer. |
So I just fixed some of the issues
I think the current state of the Dockerfile lets people quickly try NetBox out. I agree that there is some work to be done in order to make this "production ready". (Maybe the digitalocean team should decide if they actually want it to be prod ready before merging it). |
Pulled latest changes and am now getting a 502 from nginx:
Also looks like my netbox container stops running after about ten seconds or so. Any ideas @koep ? |
Running |
This is awesome! I just have one request: Instead of modifying My reason for asking is that using |
@jeremystretch sure! I just updated this PR. |
Looks good to me. Will let @jeremystretch give the final approval. |
installed netbox using this PR. no problems so far. |
Hey there, nice tool. If I may I would reckon that you change the docker-compose file to use |
I think this would be really cool. The DO team has to create an account on docker hub and implement an automated build to accomplish this. (I can't do this). ping @mdlayher, @jeremystretch |
Created #189 to track that issue. |
Add option to dockerize netbox
Hi guys,
this patch enables users to build and run netbox inside a docker container. I also added the option to run netbox via docker-compose (docker-compose up -d magic).
The implementation can probably be improved, but I think a lot of people like to use docker to try applications out these days. This is a good start.
Let me know what you think!