mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2026-03-22 08:16:54 +00:00
Refactor Dockerfile-plugins and docker-compose.override.yml to remove unnecessary image specifications and streamline build context
This commit is contained in:
parent
ab4d420bae
commit
5ed31c37ff
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue