feat: throwaway netbox deployment for end-to-end testing

compose stack modelled on the production netbox deployment (same pinned
images, worker, healthchecks) minus traefik: the API is served straight
on localhost and nothing survives an e2e-down.
This commit is contained in:
2026-08-25 13:47:18 +02:00
parent e4a1e6a472
commit 706a12b8e4
4 changed files with 144 additions and 1 deletions

24
e2e/env.example Normal file
View File

@@ -0,0 +1,24 @@
# Throwaway credentials for the local e2e stack only, never reuse them.
# NetBox
NETBOX_DOCKER_VERSION=4.0.2
NETBOX_VERSION=v4.5.8
NETBOX_HTTP_PORT=8800
NETBOX_API_TOKEN_PEPPER_1="e2e-only-pepper-0123456789abcdefghijklmnopqrstuvwxyz-0123456789"
NETBOX_SECRET_KEY="e2e-only-secret-key-0123456789abcdefghijklmnopqrstuvwxyz"
NETBOX_SUPERUSER_NAME=admin
NETBOX_SUPERUSER_EMAIL=admin@example.com
NETBOX_SUPERUSER_PASS=admin-e2e-password
# PostgreSQL
PSQL_VERSION=18.3-alpine3.22
PSQL_NAME=netbox
PSQL_USER=netbox
PSQL_PASS=netbox-e2e-password
# Redis
REDIS_VERSION=8.6.2-alpine3.23
REDIS_PASS=redis-e2e-password
# Redis Cache
REDIS_CACHE_PASS=redis-cache-e2e-password