Refactor Dockerfile-plugins and docker-compose.override.yml to remove unnecessary image specifications and streamline build context

This commit is contained in:
bboerni2 2025-09-24 13:06:36 +02:00
parent ab4d420bae
commit 5ed31c37ff
2 changed files with 6 additions and 21 deletions

View file

@ -1,6 +1,6 @@
# Dockerfile-plugins
ARG FROM_TAG=v4.4-3.4.0
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}-plugins
FROM ghcr.io/netbox-community/netbox:${FROM_TAG}
# Für Plugin-Install: kurz root werden
USER root

View file

@ -1,30 +1,15 @@
version: "3.9"
x-netbox-image: &netbox_image netboxplugins:local
services:
netbox:
build:
context: .
dockerfile: Dockerfile-plugins
args:
FROM_TAG: v4.4-3.4.0
image: *netbox_image
pull_policy: never
image: netbox-plugins:v4.4-3.4.0
restart: unless-stopped
ports:
- "8000:8080"
netbox-worker:
restart: unless-stopped
worker:
image: *netbox_image
pull_policy: never
restart: unless-stopped
housekeeping:
image: *netbox_image
pull_policy: never
command: /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py housekeeping
depends_on:
- postgres
- redis
netbox-housekeeping:
restart: unless-stopped