Skip to content
Snippets Groups Projects
Commit 6b2314af authored by Anders Harrisson's avatar Anders Harrisson
Browse files

Update docker-compose for testing v4

parent fcb9585e
No related branches found
No related tags found
1 merge request!21Move to NetBox 4.x
version: '3.4'
services:
netbox: &netbox
image: docker.io/netboxcommunity/netbox:v3.7.8
image: docker.io/netboxcommunity/netbox:v4.2-3.2.0
depends_on:
- postgres
- redis
- redis-cache
- netbox-worker
environment:
CORS_ORIGIN_ALLOW_ALL: "true"
DB_HOST: postgres
......@@ -28,46 +27,49 @@ services:
MAX_PAGE_SIZE: "1000"
MEDIA_ROOT: /opt/netbox/netbox/media
METRICS_ENABLED: "false"
NAPALM_PASSWORD: ""
NAPALM_TIMEOUT: "10"
NAPALM_USERNAME: ""
REDIS_CACHE_DATABASE: "1"
REDIS_CACHE_HOST: redis-cache
REDIS_CACHE_INSECURE_SKIP_TLS_VERIFY: "false"
REDIS_CACHE_PASSWORD: eeCae8ai0hua4koK
REDIS_CACHE_SSL: "false"
REDIS_DATABASE: "0"
REDIS_HOST: redis
REDIS_INSECURE_SKIP_TLS_VERIFY: "false"
REDIS_PASSWORD: Choopike2aeBee1f
REDIS_SSL: "false"
RELEASE_CHECK_URL: https://api.github.com/repos/netbox-community/netbox/releases
SECRET_KEY: ohL4EipaHaeng1ohrieh7xeeghoun7Qualaesoor4ahr2Daup4
SKIP_STARTUP_SCRIPTS: "false"
SKIP_SUPERUSER: "false"
SUPERUSER_API_TOKEN: 0123456789abcdef0123456789abcdef01234567
SUPERUSER_EMAIL: admin@example.com
SUPERUSER_NAME: admin
SUPERUSER_PASSWORD: admin
WEBHOOKS_ENABLED: "true"
user: '101'
ports:
- 8080:8080
user: "unit:root"
volumes:
- ./configuration:/etc/netbox/config:z,ro
- ../netbox_awx_plugin:/opt/netbox/venv/lib/python3.11/site-packages/netbox_awx_plugin
- ../netbox_awx_plugin:/opt/netbox/venv/lib/python3.12/site-packages/netbox_awx_plugin
netbox-worker:
<<: *netbox
ports: []
depends_on:
- redis
entrypoint:
- netbox
command:
- /opt/netbox/venv/bin/python
- /opt/netbox/netbox/manage.py
command:
- rqworker
postgres:
image: postgres:13-alpine
image: docker.io/postgres:17-alpine
healthcheck:
test: pg_isready -q -t 2 -d $$POSTGRES_DB -U $$POSTGRES_USER
start_period: 20s
timeout: 30s
interval: 10s
retries: 5
environment:
POSTGRES_DB: netbox
POSTGRES_PASSWORD: Oquoo9ohwohpahy5
......@@ -76,7 +78,7 @@ services:
- netbox_database:/var/lib/postgresql/data
redis:
image: redis:6-alpine
image: redis:7-alpine
command:
- sh
- -c
......@@ -85,7 +87,7 @@ services:
REDIS_PASSWORD: Choopike2aeBee1f
redis-cache:
image: redis:6-alpine
image: redis:7-alpine
command:
- sh
- -c # this is to evaluate the $REDIS_PASSWORD from the env
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment