forked from mirror/netbox-docker
testing out the stack deploy via portainer with updates
This commit is contained in:
parent
c7614aa3c3
commit
6d5d303b64
@ -5,6 +5,11 @@ services:
|
|||||||
- netbox
|
- netbox
|
||||||
ports:
|
ports:
|
||||||
- 8000:8080
|
- 8000:8080
|
||||||
|
configs:
|
||||||
|
- source: configuration.py
|
||||||
|
target: /etc/netbox/config/configuration.py
|
||||||
|
- source: ldap_config.py
|
||||||
|
target: /etc/netbox/config/ldap/ldap_config.py
|
||||||
secrets:
|
secrets:
|
||||||
- source: netbox.superuser.pwd
|
- source: netbox.superuser.pwd
|
||||||
target: superuser_password
|
target: superuser_password
|
||||||
@ -12,6 +17,10 @@ services:
|
|||||||
target: db_password
|
target: db_password
|
||||||
- source: netbox.secretkey
|
- source: netbox.secretkey
|
||||||
target: secret_key
|
target: secret_key
|
||||||
|
- source: netbox.redis.pwd
|
||||||
|
target: redis_password
|
||||||
|
- source: netbox.redis.pwd
|
||||||
|
target: redis_cache_password
|
||||||
|
|
||||||
netbox-worker:
|
netbox-worker:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -37,9 +46,18 @@ secrets:
|
|||||||
external: true
|
external: true
|
||||||
netbox.secretkey:
|
netbox.secretkey:
|
||||||
external: true
|
external: true
|
||||||
|
netbox.redis.pwd:
|
||||||
|
external: true
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
caddy:
|
caddy:
|
||||||
external: true
|
external: true
|
||||||
netbox:
|
netbox:
|
||||||
|
|
||||||
|
configs:
|
||||||
|
configuration.py:
|
||||||
|
external: true
|
||||||
|
name: netbox-configuration.py-v0
|
||||||
|
ldap_config.py:
|
||||||
|
external: true
|
||||||
|
name: netbox-ldap_config.py-v0
|
||||||
|
|||||||
@ -13,7 +13,7 @@ services:
|
|||||||
interval: 15s
|
interval: 15s
|
||||||
test: "curl -f http://localhost:8080/login/ || exit 1"
|
test: "curl -f http://localhost:8080/login/ || exit 1"
|
||||||
volumes:
|
volumes:
|
||||||
- ./configuration:/etc/netbox/config:z,ro
|
# - ./configuration:/etc/netbox/config:z,ro
|
||||||
- netbox-media-files:/opt/netbox/netbox/media:rw
|
- netbox-media-files:/opt/netbox/netbox/media:rw
|
||||||
- netbox-reports-files:/opt/netbox/netbox/reports:rw
|
- netbox-reports-files:/opt/netbox/netbox/reports:rw
|
||||||
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw
|
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user