testing out the stack deploy via portainer with updates

This commit is contained in:
hoostine 2024-06-16 19:11:01 +00:00
parent c7614aa3c3
commit 6d5d303b64
2 changed files with 19 additions and 1 deletions

View File

@ -5,6 +5,11 @@ services:
- netbox
ports:
- 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:
- source: netbox.superuser.pwd
target: superuser_password
@ -12,6 +17,10 @@ services:
target: db_password
- source: netbox.secretkey
target: secret_key
- source: netbox.redis.pwd
target: redis_password
- source: netbox.redis.pwd
target: redis_cache_password
netbox-worker:
restart: unless-stopped
@ -37,9 +46,18 @@ secrets:
external: true
netbox.secretkey:
external: true
netbox.redis.pwd:
external: true
networks:
caddy:
external: true
netbox:
configs:
configuration.py:
external: true
name: netbox-configuration.py-v0
ldap_config.py:
external: true
name: netbox-ldap_config.py-v0

View File

@ -13,7 +13,7 @@ services:
interval: 15s
test: "curl -f http://localhost:8080/login/ || exit 1"
volumes:
- ./configuration:/etc/netbox/config:z,ro
# - ./configuration:/etc/netbox/config:z,ro
- netbox-media-files:/opt/netbox/netbox/media:rw
- netbox-reports-files:/opt/netbox/netbox/reports:rw
- netbox-scripts-files:/opt/netbox/netbox/scripts:rw