🐳 Docker Image of NetBox
Go to file
Christian Mäder dd5da7afbc Merge pull request #2 from ninech/add_tests
Add tests
2017-08-30 12:53:28 +02:00
docker 🐳 Adds the possibility to overwrite the CMD 2017-08-30 11:10:15 +02:00
Dockerfile 🐳 Adds the possibility to overwrite the CMD 2017-08-30 11:10:15 +02:00
README.md 🐳 Adds a sample on how to run netbox tests 2017-08-30 11:10:55 +02:00
build.sh ❇️ Don't use Docker cache for 'master' and 'develop' 2017-08-11 17:08:43 +02:00
docker-compose.test.yml 🐳 Extracted postgres env into new file 2017-08-30 12:12:17 +02:00
docker-compose.yml 🐳 Extracted postgres env into new file 2017-08-30 12:12:17 +02:00
netbox.env Restructured docker-compose.yml 2017-04-21 13:46:15 +02:00
postgres.env 🐳 Extracted postgres env into new file 2017-08-30 12:12:17 +02:00

README.md

netbox-docker

This repository houses the components needed to build NetBox as a Docker container. It is a work in progress; please submit a bug report for any issues you encounter.

Quickstart

To get NetBox up and running:

# git clone -b master https://github.com/digitalocean/netbox-docker.git
# cd netbox-docker
# docker-compose up -d

The application will be available on http://localhost/ after a few minutes.

Default credentials:

  • Username: admin
  • Password: admin

Configuration

You can configure the app at runtime using variables (see docker-compose.yml). Possible environment variables include:

  • SUPERUSER_NAME
  • SUPERUSER_EMAIL
  • SUPERUSER_PASSWORD
  • ALLOWED_HOSTS
  • DB_NAME
  • DB_USER
  • DB_PASSWORD
  • DB_HOST
  • DB_PORT
  • SECRET_KEY
  • EMAIL_SERVER
  • EMAIL_PORT
  • EMAIL_USERNAME
  • EMAIL_PASSWORD
  • EMAIL_TIMEOUT
  • EMAIL_FROM
  • LOGIN_REQUIRED
  • MAINTENANCE_MODE
  • NETBOX_USERNAME
  • NETBOX_PASSWORD
  • PAGINATE_COUNT
  • TIME_ZONE
  • DATE_FORMAT
  • SHORT_DATE_FORMAT
  • TIME_FORMAT
  • SHORT_TIME_FORMAT
  • DATETIME_FORMAT
  • SHORT_DATETIME_FORMAT

Tests

To run the bundled test, use the docker-compose.test.yml file.

# docker-compose -f docker-compose.test.yml run --rm app