2025-09-23 12:11:36 +00:00
|
|
|
services:
|
|
|
|
|
netbox:
|
|
|
|
|
ports:
|
|
|
|
|
- "8000:8080"
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
|
|
|
|
max-size: "10m"
|
|
|
|
|
max-file: "3"
|
2025-09-23 14:51:42 +00:00
|
|
|
volumes:
|
|
|
|
|
- ./requirements-plugins.txt:/plugins/requirements-plugins.txt:ro
|
|
|
|
|
command: >
|
2025-09-23 14:55:55 +00:00
|
|
|
sh -lc "/opt/netbox/venv/bin/python -m pip install --no-cache-dir -r /plugins/requirements-plugins.txt
|
2025-09-23 14:51:42 +00:00
|
|
|
&& /opt/netbox/docker-entrypoint.sh"
|
2025-09-23 12:11:36 +00:00
|
|
|
|
|
|
|
|
netbox-worker:
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
|
|
|
|
max-size: "10m"
|
|
|
|
|
max-file: "3"
|
|
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
|
|
|
|
max-size: "20m"
|
|
|
|
|
max-file: "5"
|
|
|
|
|
|
|
|
|
|
redis:
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
|
|
|
|
max-size: "20m"
|
|
|
|
|
max-file: "5"
|
|
|
|
|
|
|
|
|
|
redis-cache:
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
logging:
|
|
|
|
|
driver: "json-file"
|
|
|
|
|
options:
|
|
|
|
|
max-size: "20m"
|
|
|
|
|
max-file: "5"
|