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
|
# 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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue