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 # Dockerfile-plugins
ARG FROM_TAG=v4.4-3.4.0 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 # Für Plugin-Install: kurz root werden
USER root USER root

View file

@ -1,30 +1,15 @@
version: "3.9"
x-netbox-image: &netbox_image netboxplugins:local
services: services:
netbox: netbox:
build: build:
context: . context: .
dockerfile: Dockerfile-plugins dockerfile: Dockerfile-plugins
args: image: netbox-plugins:v4.4-3.4.0
FROM_TAG: v4.4-3.4.0 restart: unless-stopped
image: *netbox_image
pull_policy: never
ports: ports:
- "8000:8080" - "8000:8080"
netbox-worker:
restart: unless-stopped restart: unless-stopped
worker: netbox-housekeeping:
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
restart: unless-stopped restart: unless-stopped