mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-06-15 06:26:38 +02:00
Updated Deployment (markdown)
parent
cc184a1a23
commit
900d4f6a0f
@ -1,6 +1,7 @@
|
|||||||
**Important: Also consider [the advice about configuring Netbox for production](configuration#configure-for-production)!**
|
**Important: Also consider [the advice about configuring Netbox for production](configuration#configure-for-production)!**
|
||||||
|
|
||||||
You may run this image in a cluster such as Docker Swarm, Kubernetes or OpenShift, but this is advanced level.
|
If run this image in a cluster such as Docker Swarm, Kubernetes or OpenShift, the following will come in extra handy for you.
|
||||||
|
But these techniques work equally well in the regular _docker-compose_-based approach.
|
||||||
|
|
||||||
In this case, we encourage you to statically configure Netbox by starting from [Netbox's example config file][default-config], and mounting it into your container in the directory `/etc/netbox/config/` using the mechanism provided by your container platform (i.e. [Docker Swarm configs][swarm-config], [Kubernetes ConfigMap][k8s-config], [OpenShift ConfigMaps][openshift-config]).
|
In this case, we encourage you to statically configure Netbox by starting from [Netbox's example config file][default-config], and mounting it into your container in the directory `/etc/netbox/config/` using the mechanism provided by your container platform (i.e. [Docker Swarm configs][swarm-config], [Kubernetes ConfigMap][k8s-config], [OpenShift ConfigMaps][openshift-config]).
|
||||||
|
|
||||||
@ -47,8 +48,9 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
netbox-worker:
|
netbox-worker:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
nginx:
|
# Uncomment if you use NetBox Docker < 0.28.0
|
||||||
restart: unless-stopped
|
# nginx:
|
||||||
|
# restart: unless-stopped
|
||||||
postgres:
|
postgres:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
redis:
|
redis:
|
||||||
@ -56,7 +58,7 @@ services:
|
|||||||
redis-cache:
|
redis-cache:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
> NOTE: From **version 0.28.0** and above the `nginx` part from the file above must be removed.
|
|
||||||
### TLS (HTTPS)
|
### TLS (HTTPS)
|
||||||
|
|
||||||
We recommend that you deploy TLS.
|
We recommend that you deploy TLS.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user