From 989f6fa96e2f7a03e18b243da956b73580ff9940 Mon Sep 17 00:00:00 2001 From: TheNetworkGuy Date: Mon, 14 Apr 2025 20:36:52 +0200 Subject: [PATCH] Moved compose override logic to infra folder --- .github/workflows/unittesting.yml | 2 +- infra/netbox-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 infra/netbox-compose.yml diff --git a/.github/workflows/unittesting.yml b/.github/workflows/unittesting.yml index b970c5c..8b0e033 100644 --- a/.github/workflows/unittesting.yml +++ b/.github/workflows/unittesting.yml @@ -38,7 +38,7 @@ jobs: - name: configure and start Netbox run: | git clone -b release https://github.com/netbox-community/netbox-docker.git - mv netbox-docker/docker-compose.override.yml.example netbox-docker/docker-compose.override.yml + mv infra/netbox-compose.yml netbox-docker/docker-compose.override.yml docker compose -f netbox-docker/docker-compose.yml pull docker compose -f netbox-docker/docker-compose.yml up -d - name: Wait 2 minutes for compose stack to build diff --git a/infra/netbox-compose.yml b/infra/netbox-compose.yml new file mode 100644 index 0000000..89e04cf --- /dev/null +++ b/infra/netbox-compose.yml @@ -0,0 +1,22 @@ +services: + netbox: + ports: + - "8000:8080" + # If you want the Nginx unit status page visible from the + # outside of the container add the following port mapping: + # - "8001:8081" + healthcheck: + # Time for which the health check can fail after the container is started. + # This depends mostly on the performance of your database. On the first start, + # when all tables need to be created the start_period should be higher than on + # subsequent starts. For the first start after major version upgrades of NetBox + # the start_period might also need to be set higher. + # Default value in our docker-compose.yml is 60s + start_period: 90s + # environment: + # SKIP_SUPERUSER: "false" + # SUPERUSER_API_TOKEN: "" + # SUPERUSER_EMAIL: "" + # SUPERUSER_NAME: "" + # SUPERUSER_PASSWORD: "" +